Class: Argos::Oauth::Applications::Credential

Inherits:
Object
  • Object
show all
Defined in:
lib/argos/oauth/applications.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(app_name, identifier, secret, url) ⇒ Credential

Returns a new instance of Credential



74
75
76
77
78
79
# File 'lib/argos/oauth/applications.rb', line 74

def initialize(app_name, identifier, secret, url)
  @app_name = app_name
  @identifier = identifier
  @secret = secret
  @url = url
end

Instance Attribute Details

#app_nameObject (readonly)

Returns the value of attribute app_name



72
73
74
# File 'lib/argos/oauth/applications.rb', line 72

def app_name
  @app_name
end

#identifierObject (readonly)

Returns the value of attribute identifier



72
73
74
# File 'lib/argos/oauth/applications.rb', line 72

def identifier
  @identifier
end

#secretObject (readonly)

Returns the value of attribute secret



72
73
74
# File 'lib/argos/oauth/applications.rb', line 72

def secret
  @secret
end

#urlObject (readonly)

Returns the value of attribute url



72
73
74
# File 'lib/argos/oauth/applications.rb', line 72

def url
  @url
end

Instance Method Details

#to_sObject



81
82
83
# File 'lib/argos/oauth/applications.rb', line 81

def to_s
  "#{app_name}:\n\tIdentifier: #{identifier}\n\tSecret: #{secret}\n\tUrl: #{url}"
end