Class: SalsaLabs::SalsaObject
- Inherits:
-
Object
- Object
- SalsaLabs::SalsaObject
- Defined in:
- lib/salsa_labs/salsa_object.rb
Overview
Base class used for subclasses that can be represented by Salsa Labs concepts that can be returned by getObject or getObjects.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
Instance Method Summary collapse
-
#initialize(params) ⇒ SalsaObject
constructor
A new instance of SalsaObject.
- #organization_key ⇒ Object
Constructor Details
#initialize(params) ⇒ SalsaObject
Returns a new instance of SalsaObject.
10 11 12 |
# File 'lib/salsa_labs/salsa_object.rb', line 10 def initialize(params) @attributes = params end |
Instance Attribute Details
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes.
8 9 10 |
# File 'lib/salsa_labs/salsa_object.rb', line 8 def attributes @attributes end |
Instance Method Details
#organization_key ⇒ Object
14 15 16 |
# File 'lib/salsa_labs/salsa_object.rb', line 14 def organization_key (attributes['organization_key'] || 0).to_i end |