Class: Clarinet::Concept
- Inherits:
-
Object
- Object
- Clarinet::Concept
- Defined in:
- lib/clarinet/concept.rb
Instance Attribute Summary collapse
-
#app_id ⇒ Object
readonly
Returns the value of attribute app_id.
-
#created_at ⇒ Object
readonly
Returns the value of attribute created_at.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#raw_data ⇒ Object
readonly
Returns the value of attribute raw_data.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(raw_data = {}) ⇒ Concept
constructor
A new instance of Concept.
Constructor Details
#initialize(raw_data = {}) ⇒ Concept
Returns a new instance of Concept.
11 12 13 14 15 16 17 18 19 |
# File 'lib/clarinet/concept.rb', line 11 def initialize(raw_data = {}) @raw_data = raw_data @id = raw_data[:id] @name = raw_data[:name] @created_at = raw_data[:created_at] @app_id = raw_data[:app_id] @value = raw_data[:value] end |
Instance Attribute Details
#app_id ⇒ Object (readonly)
Returns the value of attribute app_id.
6 7 8 |
# File 'lib/clarinet/concept.rb', line 6 def app_id @app_id end |
#created_at ⇒ Object (readonly)
Returns the value of attribute created_at.
8 9 10 |
# File 'lib/clarinet/concept.rb', line 8 def created_at @created_at end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
4 5 6 |
# File 'lib/clarinet/concept.rb', line 4 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/clarinet/concept.rb', line 5 def name @name end |
#raw_data ⇒ Object (readonly)
Returns the value of attribute raw_data.
9 10 11 |
# File 'lib/clarinet/concept.rb', line 9 def raw_data @raw_data end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
7 8 9 |
# File 'lib/clarinet/concept.rb', line 7 def value @value end |