Class: Activity

Inherits:
Object
  • Object
show all
Defined in:
lib/tunefish_client/activity.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#idObject (readonly)

Returns the value of attribute id.



2
3
4
# File 'lib/tunefish_client/activity.rb', line 2

def id
  @id
end

#providerObject (readonly)

Returns the value of attribute provider.



2
3
4
# File 'lib/tunefish_client/activity.rb', line 2

def provider
  @provider
end

#urlObject (readonly)

Returns the value of attribute url.



2
3
4
# File 'lib/tunefish_client/activity.rb', line 2

def url
  @url
end