Class: Ticketutils::Venue
Instance Attribute Summary collapse
-
#city ⇒ Object
Returns the value of attribute city.
-
#country ⇒ Object
Returns the value of attribute country.
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
-
#seating_charts ⇒ Object
Returns the value of attribute seating_charts.
-
#state ⇒ Object
Returns the value of attribute state.
-
#status ⇒ Object
Returns the value of attribute status.
Class Method Summary collapse
Instance Attribute Details
#city ⇒ Object
Returns the value of attribute city.
3 4 5 |
# File 'lib/ticketutils/venue.rb', line 3 def city @city end |
#country ⇒ Object
Returns the value of attribute country.
3 4 5 |
# File 'lib/ticketutils/venue.rb', line 3 def country @country end |
#id ⇒ Object
Returns the value of attribute id.
3 4 5 |
# File 'lib/ticketutils/venue.rb', line 3 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/ticketutils/venue.rb', line 3 def name @name end |
#seating_charts ⇒ Object
Returns the value of attribute seating_charts.
3 4 5 |
# File 'lib/ticketutils/venue.rb', line 3 def seating_charts @seating_charts end |
#state ⇒ Object
Returns the value of attribute state.
3 4 5 |
# File 'lib/ticketutils/venue.rb', line 3 def state @state end |
#status ⇒ Object
Returns the value of attribute status.
3 4 5 |
# File 'lib/ticketutils/venue.rb', line 3 def status @status end |
Class Method Details
.find(options = {}) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/ticketutils/venue.rb', line 5 def self.find( = {}) results = if [:updated] get("/#{Ticketutils.auth_token}/Venues/UpdatedSince/#{[:updated].strftime("%Y%m%d%H%M")}/#{[:page] || 1}").parsed_response else = { :page => [:page] || 1, :itemsPerPage => [:per_page] || 100, :updatedSince => [:updated] }.collect { |k, v| "#{k}=#{v}" unless v.nil? } results = get("/#{Ticketutils.auth_token}/Venues?#{.join("&")}").parsed_response end return parse_response(results) end |