Class: OpenID::Consumer::FailureResponse

Inherits:
Object
  • Object
show all
Includes:
Response
Defined in:
lib/openid/consumer/responses.rb

Constant Summary collapse

STATUS =
FAILURE

Instance Attribute Summary collapse

Attributes included from Response

#endpoint

Instance Method Summary collapse

Methods included from Response

#display_identifier, #identity_url, #status

Constructor Details

#initialize(endpoint, message, contact = nil, reference = nil) ⇒ FailureResponse

Returns a new instance of FailureResponse.



123
124
125
126
127
128
# File 'lib/openid/consumer/responses.rb', line 123

def initialize(endpoint, message, contact=nil, reference=nil)
  @endpoint = endpoint
  @message = message
  @contact = contact
  @reference = reference
end

Instance Attribute Details

#contactObject (readonly)

Returns the value of attribute contact.



122
123
124
# File 'lib/openid/consumer/responses.rb', line 122

def contact
  @contact
end

#messageObject (readonly)

Returns the value of attribute message.



122
123
124
# File 'lib/openid/consumer/responses.rb', line 122

def message
  @message
end

#referenceObject (readonly)

Returns the value of attribute reference.



122
123
124
# File 'lib/openid/consumer/responses.rb', line 122

def reference
  @reference
end