Class: Chiketto::Venue

Inherits:
Resource show all
Defined in:
lib/chiketto/venue.rb

Instance Attribute Summary collapse

Attributes inherited from Resource

#id

Instance Method Summary collapse

Methods inherited from Resource

endpoint, get, #initialize, legacy_endpoint, open_post, post, query, token

Methods included from AttrDSL

included

Constructor Details

This class inherits a constructor from Chiketto::Resource

Instance Attribute Details

#nameObject

Returns the value of attribute name.



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

def name
  @name
end

Instance Method Details

#locationObject



5
6
7
# File 'lib/chiketto/venue.rb', line 5

def location
  Chiketto::Address.new @location.to_h
end

#to_sObject



9
10
11
# File 'lib/chiketto/venue.rb', line 9

def to_s
  @name
end