Class: ZohoCrm::Organization::Facade
- Inherits:
-
Object
- Object
- ZohoCrm::Organization::Facade
- Defined in:
- lib/zoho_crm/organization/facade.rb
Instance Attribute Summary collapse
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Instance Method Summary collapse
-
#initialize(hash) ⇒ Facade
constructor
A new instance of Facade.
Constructor Details
#initialize(hash) ⇒ Facade
6 7 8 9 |
# File 'lib/zoho_crm/organization/facade.rb', line 6 def initialize(hash) @id = hash['org'][0]['id'] @attributes = hash['org'][0] end |
Instance Attribute Details
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes.
4 5 6 |
# File 'lib/zoho_crm/organization/facade.rb', line 4 def attributes @attributes end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
4 5 6 |
# File 'lib/zoho_crm/organization/facade.rb', line 4 def id @id end |