Class: LinkedIn::Company
Instance Attribute Summary
Attributes inherited from Base
Class Method Summary collapse
Methods inherited from Base
#client, client, #initialize, #method_missing, reset_client, #respond_to?
Constructor Details
This class inherits a constructor from LinkedIn::Base
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class LinkedIn::Base
Class Method Details
.find(id, *fields) ⇒ Object
11 12 13 |
# File 'lib/linkedin/company.rb', line 11 def self.find(id, *fields) find_by( { id: id }, *fields) end |
.find_by(selector, *fields) ⇒ Object
15 16 17 18 |
# File 'lib/linkedin/company.rb', line 15 def self.find_by(selector, *fields) fields = fields.blank? ? COMPANY_BASE_FIELDS : fields Company.new client.company( selector: selector, fields: fields ) end |