Class: KegbotApi::Beverage
Overview
Beverage information (as returned with a Keg instance)
Class Method Summary
collapse
Instance Method Summary
collapse
first, get, list, one
Methods inherited from RestNoun
#client, #initialize
Class Method Details
.inspect ⇒ Object
19
20
21
|
# File 'lib/kegbot_api/nouns/beverage.rb', line 19
def self.inspect
to_s
end
|
.to_s ⇒ Object
15
16
17
|
# File 'lib/kegbot_api/nouns/beverage.rb', line 15
def self.to_s
self.client ? "KegbotApi::Beverage<#{self.client.base_url}>" : super
end
|
Instance Method Details
#to_s ⇒ Object
11
12
13
|
# File 'lib/kegbot_api/nouns/beverage.rb', line 11
def to_s
"#<#{self.class.to_s}:#{"0x%x" % object_id} @id=#{self.id.inspect}>"
end
|