Class: Chiketto::Venue
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
Attributes inherited from Resource
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Resource
build_query_string, endpoint, get, #initialize, open_post, paginated, post, should_paginate, token
Methods included from AttrDSL
Constructor Details
This class inherits a constructor from Chiketto::Resource
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/chiketto/venue.rb', line 3 def name @name end |
Class Method Details
.find(id) ⇒ Object
5 6 7 8 |
# File 'lib/chiketto/venue.rb', line 5 def self.find(id) response = get "venues/#{id}" new response end |