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