Class: Sourcescrub::Apis::Sources
- Inherits:
-
Object
- Object
- Sourcescrub::Apis::Sources
- Includes:
- Utils::SsModel
- Defined in:
- lib/sourcescrub/apis/sources.rb
Overview
Companies endpoint
Instance Attribute Summary collapse
-
#args ⇒ Object
Returns the value of attribute args.
Attributes included from Utils::SsModel
Instance Method Summary collapse
- #companies_url ⇒ Object
-
#initialize(source_id, args) ⇒ Sources
constructor
A new instance of Sources.
- #request_url ⇒ Object
- #search_url ⇒ Object
Methods included from Utils::SsModel
#exact_kclass_object, #kclass_name, #sobject
Constructor Details
#initialize(source_id, args) ⇒ Sources
Returns a new instance of Sources.
15 16 17 18 19 |
# File 'lib/sourcescrub/apis/sources.rb', line 15 def initialize(source_id, args) @source_id = source_id @model_type = args.delete(:model_type) @args = args end |
Instance Attribute Details
#args ⇒ Object
Returns the value of attribute args.
13 14 15 |
# File 'lib/sourcescrub/apis/sources.rb', line 13 def args @args end |
Instance Method Details
#companies_url ⇒ Object
35 36 37 38 39 40 41 |
# File 'lib/sourcescrub/apis/sources.rb', line 35 def companies_url [ Models::Source::ENDPOINT, @source_id, 'companies' ].compact.join('/') end |