Sha256: 12076b5f56a7503e009037298f14e7dd9d212474d4435bedd9003a8cc29ed3b6

Contents?: true

Size: 387 Bytes

Versions: 1

Compression:

Stored size: 387 Bytes

Contents

require 'kegbot_api/nouns/rest_noun'

module KegbotApi
  class KegSize < RestNoun
    id      :id
    string  :name
    float   :volume_ml

    def to_s
      "#<#{self.class.to_s}:#{"0x%x" % object_id} @id=#{self.id.inspect}>"
    end

    def self.to_s
      self.client ? "KegbotApi::KegSize<#{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/keg_size.rb