Skip to content

If you don't use prefix for client_service, it ignores ":only" argument #13

@SteveRedka

Description

@SteveRedka

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions