Class: KegbotApi::Beverage

Inherits:
RemoteRestNoun show all
Defined in:
lib/kegbot_api/nouns/beverage.rb

Overview

Beverage information (as returned with a Keg instance)

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from RemoteRestNoun

first, get, list, one

Methods inherited from RestNoun

#client, #initialize

Constructor Details

This class inherits a constructor from KegbotApi::RestNoun

Class Method Details

.inspectObject



19
20
21
# File 'lib/kegbot_api/nouns/beverage.rb', line 19

def self.inspect
  to_s
end

.to_sObject



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_sObject



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