Sha256: b64b312d26686ada134acf2f8f6e2114eaf2d88bfd3b1edeb38674872b43006c
Contents?: true
Size: 469 Bytes
Versions: 1
Compression:
Stored size: 469 Bytes
Contents
require 'kegbot_api/nouns/rest_noun' module KegbotApi # Beverage information (as returned with a {Keg} instance) class Beverage < RemoteRestNoun id :id string :name float :abv has_one :image def to_s "#<#{self.class.to_s}:#{"0x%x" % object_id} @id=#{self.id.inspect}>" end def self.to_s self.client ? "KegbotApi::Beverage<#{self.client.base_url}>" : super end def self.inspect to_s end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
kegbot_api-0.0.1 | lib/kegbot_api/nouns/beverage.rb |