Class: Driftrock::Admin::DriftrockModel::Company
- Inherits:
-
Object
- Object
- Driftrock::Admin::DriftrockModel::Company
- Includes:
- Service::DriftrockModel
- Defined in:
- lib/driftrock-service/driftrock_model/admin/company.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Class Method Summary collapse
Methods included from Service::DriftrockModel
#get_from_api_method, included, #initialize, #post_to_api_method, #put_to_api_method
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
8 9 10 |
# File 'lib/driftrock-service/driftrock_model/admin/company.rb', line 8 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
8 9 10 |
# File 'lib/driftrock-service/driftrock_model/admin/company.rb', line 8 def name @name end |
Class Method Details
.names ⇒ Object
10 11 12 13 14 |
# File 'lib/driftrock-service/driftrock_model/admin/company.rb', line 10 def self.names get_from_api_method.call( "/names" ) end |