Sha256: f2a6b2302c9a4cf264c6e90344a378af0c157afc9b321a6965bac24947131c73
Contents?: true
Size: 1.02 KB
Versions: 4
Compression:
Stored size: 1.02 KB
Contents
module Nova module API module Resource class Company < Nova::API::Base ALLOWED_ATTRIBUTES = %i[] attribute? :active, Dry::Types['strict.bool'].optional attribute? :address, Dry::Types['coercible.string'].optional attribute? :id, Dry::Types['coercible.integer'].optional attribute? :identification, Dry::Types['coercible.string'].optional attribute? :name, Dry::Types['coercible.string'].optional attribute? :phone, Dry::Types['coercible.string'].optional attribute? :social_contract_date, Dry::Types['coercible.string'].constrained(format: DATE_REGEX).optional attribute? :social_contract_number, Dry::Types['coercible.string'].optional attribute? :state_inscription, 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
4 entries across 4 versions & 1 rubygems