Sha256: ed79819674279231d61a53b587aaaf3996c6f62d80d3e4176c9925c389534f19
Contents?: true
Size: 520 Bytes
Versions: 5
Compression:
Stored size: 520 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) 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
5 entries across 5 versions & 4 rubygems