Class: Activity
- Inherits:
-
Object
- Object
- Activity
- Defined in:
- lib/tunefish_client/activity.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#provider ⇒ Object
readonly
Returns the value of attribute provider.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(data) ⇒ Activity
constructor
A new instance of Activity.
Constructor Details
#initialize(data) ⇒ Activity
Returns a new instance of Activity.
4 5 6 7 8 |
# File 'lib/tunefish_client/activity.rb', line 4 def initialize(data) @id = data["id"] @url = data["url"] @provider = data["provider"] end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
2 3 4 |
# File 'lib/tunefish_client/activity.rb', line 2 def id @id end |
#provider ⇒ Object (readonly)
Returns the value of attribute provider.
2 3 4 |
# File 'lib/tunefish_client/activity.rb', line 2 def provider @provider end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
2 3 4 |
# File 'lib/tunefish_client/activity.rb', line 2 def url @url end |