Class: Gowalla::Checkin

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data = {}) ⇒ Checkin

Returns a new instance of Checkin.



5
6
7
8
9
10
11
# File 'lib/gowalla/checkin.rb', line 5

def initialize(data={})
  @type = data['type']
  @message = data['message']
  @url = data['url']
  @spot = Spot.new(data['spot'])
  @created_at = data['created_at']
end

Instance Attribute Details

#created_atObject

Returns the value of attribute created_at.



3
4
5
# File 'lib/gowalla/checkin.rb', line 3

def created_at
  @created_at
end

#messageObject

Returns the value of attribute message.



3
4
5
# File 'lib/gowalla/checkin.rb', line 3

def message
  @message
end

#spotObject

Returns the value of attribute spot.



3
4
5
# File 'lib/gowalla/checkin.rb', line 3

def spot
  @spot
end

#typeObject

Returns the value of attribute type.



3
4
5
# File 'lib/gowalla/checkin.rb', line 3

def type
  @type
end

#urlObject

Returns the value of attribute url.



3
4
5
# File 'lib/gowalla/checkin.rb', line 3

def url
  @url
end