Sha256: c61036112ed9655487c5529757d78b3adcddd88fd5c74a0723b33f559a957724

Contents?: true

Size: 404 Bytes

Versions: 1

Compression:

Stored size: 404 Bytes

Contents

require 'kegbot_api/nouns/rest_noun'

module KegbotApi
  class Image < RestNoun
    id      :id
    time    :time
    url     :url
    url     :thumbnail_url

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

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