Class: OsoCloud::Value
- Inherits:
-
Struct
- Object
- Struct
- OsoCloud::Value
- Defined in:
- lib/oso/oso.rb
Overview
Represents an object in your application, with a type and id. Both “type” and “id” should be strings.
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id
15 16 17 |
# File 'lib/oso/oso.rb', line 15 def id @id end |
#type ⇒ Object
Returns the value of attribute type
15 16 17 |
# File 'lib/oso/oso.rb', line 15 def type @type end |
Instance Method Details
#to_api_value ⇒ Object
16 17 18 |
# File 'lib/oso/oso.rb', line 16 def to_api_value OsoCloud::Helpers.extract_value(self) end |