Class: Driftrock::Admin::DriftrockModel::Company

Inherits:
Object
  • Object
show all
Includes:
Service::DriftrockModel
Defined in:
lib/driftrock-service/driftrock_model/admin/company.rb

Instance Attribute Summary collapse

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

#idObject (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

#nameObject (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

.namesObject



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