Sha256: f5c1c1af810624fe680ea463d199fd9812cfae946d08798ee5007d33efff8074

Contents?: true

Size: 544 Bytes

Versions: 38

Compression:

Stored size: 544 Bytes

Contents

# wrapping class to hold a flickr size
# 
class Flickr::Auth::Token
  attr_accessor :token, :permisions, :user_id, :username, :user_real_name

  # create a new instance of a flickr auth token.
  # 
  # Params
  # * attributes (Required)
  #     a hash of attributes used to set the initial values of the token object
  def initialize(attributes)
    attributes.each do |k,v|
      send("#{k}=", v) if respond_to?("#{k}=")
    end
  end

  # overide the default to_s to output the text of the token
  # 
  def to_s
    self.token.to_s
  end
end

Version data entries

38 entries across 38 versions & 11 rubygems

Version Path
flickr_fu-0.3.4 lib/flickr/token.rb
flickr_fu-0.3.3 lib/flickr/token.rb
ayn-flickr_fu-0.3.5 lib/flickr/token.rb
ayn-flickr_fu-0.3.6 lib/flickr/token.rb
ayn-flickr_fu-0.3.7 lib/flickr/token.rb
ayn-flickr_fu-0.3.9 lib/flickr/token.rb
commonthread-flickr_fu-0.2.0 lib/flickr/token.rb
commonthread-flickr_fu-0.2.1 lib/flickr/token.rb
commonthread-flickr_fu-0.2.2 lib/flickr/token.rb
commonthread-flickr_fu-0.3.0 lib/flickr/token.rb
maciej-flickr_fu-0.3.0 lib/flickr/token.rb
rmm5t-flickr_fu-0.3.1 lib/flickr/token.rb
rschenk-flickr_fu-0.3.2 lib/flickr/token.rb
fotonauts-flickr_fu-0.3.13 lib/flickr/token.rb
fotonauts-flickr_fu-0.3.11 lib/flickr/token.rb
fotonauts-flickr_fu-0.3.10 lib/flickr/token.rb
fotonauts-flickr_fu-0.3.9 lib/flickr/token.rb
fotonauts-flickr_fu-0.3.8 lib/flickr/token.rb
fotonauts-flickr_fu-0.3.7 lib/flickr/token.rb
fotonauts-flickr_fu-0.3.6 lib/flickr/token.rb