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(attriutes = {}) ⇒ 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(attriutes = {})
  super
  @street  = attriutes[:street]
  @city    = attriutes[:city]
  @state   = attriutes[:state]
  @zip     = attriutes[:zip]
  @country = attriutes[: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