Class: Kentaa::Api::Resources::Activity
- Inherits:
-
Object
- Object
- Kentaa::Api::Resources::Activity
- Defined in:
- lib/kentaa/api/resources/activity.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Instance Method Summary collapse
- #id ⇒ Object
-
#initialize(data) ⇒ Activity
constructor
A new instance of Activity.
- #name ⇒ Object
Constructor Details
#initialize(data) ⇒ Activity
Returns a new instance of Activity.
9 10 11 |
# File 'lib/kentaa/api/resources/activity.rb', line 9 def initialize(data) @data = data end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
7 8 9 |
# File 'lib/kentaa/api/resources/activity.rb', line 7 def data @data end |
Instance Method Details
#id ⇒ Object
13 14 15 |
# File 'lib/kentaa/api/resources/activity.rb', line 13 def id data[:id] end |
#name ⇒ Object
17 18 19 |
# File 'lib/kentaa/api/resources/activity.rb', line 17 def name data[:name] end |