Class: Gowalla::Event

Inherits:
Base
  • Object
show all
Defined in:
lib/gowalla/event.rb

Overview

Retrieve a list of check-ins at a particular spot. Shows only the activity that is visible to a given user. model is singular. activities is an array for a given event.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data = {}) ⇒ Event

Returns a new instance of Event.



7
8
9
10
# File 'lib/gowalla/event.rb', line 7

def initialize(data={}) 
  @url = data['url']
  @activity = data['activity'].map{|activity| Activity.new(activity)}
end

Instance Attribute Details

#activityObject

Returns the value of attribute activity.



5
6
7
# File 'lib/gowalla/event.rb', line 5

def activity
  @activity
end

#urlObject

Returns the value of attribute url.



5
6
7
# File 'lib/gowalla/event.rb', line 5

def url
  @url
end