Sha256: afa7f88e14902879d9bd0e6b3340caa7f6dad84ef9017bd7f45742ec1be8300d

Contents?: true

Size: 496 Bytes

Versions: 8

Compression:

Stored size: 496 Bytes

Contents

require 'flattr/base'

module Flattr
  class Thing < Flattr::Base

    lazy_attr_reader :resource, :link, :id, :url, :language, :category,
      :hidden, :flattred, :tags, :flattrs, :description, :title,
      :last_flattr_at, :updated_at, :image, :owner

    lazy_attr_writer :tags, :language, :category, :hidden, :description,
      :description, :title

    def initialize(attrs={})
      attrs['owner'] = Flattr::User.new attrs['owner'] if attrs['owner']
      super attrs
    end
   end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
flattr-0.3.7 lib/flattr/thing.rb
flattr-0.3.6 lib/flattr/thing.rb
flattr-0.3.5 lib/flattr/thing.rb
flattr-0.3.4 lib/flattr/thing.rb
flattr-0.3.3 lib/flattr/thing.rb
flattr-0.3.2 lib/flattr/thing.rb
flattr-0.3.1 lib/flattr/thing.rb
flattr-0.3.0 lib/flattr/thing.rb