Class: FbGraph::Venue

Inherits:
Location show all
Defined in:
lib/fb_graph/venue.rb

Instance Attribute Summary collapse

Attributes inherited from Location

#latitude, #longitude

Instance Method Summary collapse

Methods inherited from Location

#to_hash

Methods included from Serialization

#as_json, #to_hash, #to_json

Methods included from Comparison

#==

Constructor Details

#initialize(attributes = {}) ⇒ Venue

Returns a new instance of Venue.



5
6
7
8
9
10
11
12
# File 'lib/fb_graph/venue.rb', line 5

def initialize(attributes = {})
  super
  @street  = attributes[:street]
  @city    = attributes[:city]
  @state   = attributes[:state]
  @zip     = attributes[:zip]
  @country = attributes[:country]
end

Instance Attribute Details

#cityObject

Returns the value of attribute city.



3
4
5
# File 'lib/fb_graph/venue.rb', line 3

def city
  @city
end

#countryObject

Returns the value of attribute country.



3
4
5
# File 'lib/fb_graph/venue.rb', line 3

def country
  @country
end

#stateObject

Returns the value of attribute state.



3
4
5
# File 'lib/fb_graph/venue.rb', line 3

def state
  @state
end

#streetObject

Returns the value of attribute street.



3
4
5
# File 'lib/fb_graph/venue.rb', line 3

def street
  @street
end

#zipObject

Returns the value of attribute zip.



3
4
5
# File 'lib/fb_graph/venue.rb', line 3

def zip
  @zip
end