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

- (Credential) initialize(app_name, identifier, secret, url)

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

- (Object) app_name (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

- (Object) identifier (readonly)

Returns the value of attribute identifier



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

def identifier
  @identifier
end

- (Object) secret (readonly)

Returns the value of attribute secret



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

def secret
  @secret
end

- (Object) url (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

- (Object) to_s



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