lib/digital_river/auth/token.rb
def attributes
        ATTRIBUTES.inject({}) do |h, name|
          h[name] = send(name)
          h
        end
      end
# Returns a hash with all values
#
# @return [Hash]
#
# @api public
#
# @example
#   token = Token.build({:access_toke => "123abc",
#                        :token_type => "token_type",
#                        :expires_in => 3600,
#                        :refresh_token => "345def",
#                        :scope => "shoppers"})
#   token.attributes
Returns a hash with all values
Returns a hash with all values
def attributes
        ATTRIBUTES.inject({}) do |h, name|
          h[name] = send(name)
          h
        end
      end
def attributes ATTRIBUTES . inject ( { } ) do | h , name | h [ name ] = send ( name ) h end end
Returns a hash with all values
Returns a hash with all values
None
Hash
api
None
example
token = Token.build({:access_toke => "123abc", :token_type => "token_type", :expires_in => 3600, :refresh_token => "345def", :scope => "shoppers"}) token.attributes
token = Token . build ( { : access_toke = > " 123abc " : token_type = > " token_type " : expires_in = > 3600 : refresh_token = > " 345def " : scope = > " shoppers " } ) token . attributes