Sha256: b03aa28b52efc633e13ac25fd606ee507c24023b780d50ea78a9d44300b35507

Contents?: true

Size: 491 Bytes

Versions: 9

Compression:

Stored size: 491 Bytes

Contents

module Nova
  module API
    module Resource
      class Company < Nova::API::Base
        ALLOWED_ATTRIBUTES = %i[]

        attribute? :id, Dry::Types['coercible.integer'].optional
        attribute? :name, Dry::Types['coercible.string'].optional
        attribute? :trading_name, Dry::Types['coercible.string'].optional

        def self.endpoint
          '/api/companies'
        end

        def self.list
          do_get_search(endpoint, nil)
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
nova-api-1.3.0 lib/nova/api/resource/company.rb
nova-api-1.2.0 lib/nova/api/resource/company.rb
nova-api-1.1.0 lib/nova/api/resource/company.rb
nova-api-1.0.0 lib/nova/api/resource/company.rb
nova-api-0.8.0 lib/nova/api/resource/company.rb
nova-api-0.7.0 lib/nova/api/resource/company.rb
nova-api-0.6.0 lib/nova/api/resource/company.rb
nova-api-0.5.0 lib/nova/api/resource/company.rb
nova-api-0.4.0 lib/nova/api/resource/company.rb