Open SteveRedka opened 4 years ago
Let's assume we have an entity working with two APIs. For example:
class File < ApiStruct::Entity client_service CdnClient, only: :show client_service RestClient, only: :index attr_entity :size, :url, :uuid, :source end
If you call File.show it will try to call RestClient.new.show instead of CdnClient.new.show.
File.show
RestClient.new.show
CdnClient.new.show
Let's assume we have an entity working with two APIs. For example:
If you call
File.show
it will try to callRestClient.new.show
instead ofCdnClient.new.show
.