Class: Identisure::MitId::Pending

Inherits:
Object
  • Object
show all
Defined in:
lib/identisure/mit_id.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id:, ref_id: nil, url: nil, binding_message: nil) ⇒ Pending

Returns a new instance of Pending.



67
68
69
# File 'lib/identisure/mit_id.rb', line 67

def initialize(id:, ref_id: nil, url: nil, binding_message: nil)
  @id = id; @ref_id = ref_id; @url = url; @binding_message = binding_message
end

Instance Attribute Details

#binding_message ⇒ Object (readonly)

Returns the value of attribute binding_message.



65
66
67
# File 'lib/identisure/mit_id.rb', line 65

def binding_message
  @binding_message
end

#id ⇒ Object (readonly)

Returns the value of attribute id.



65
66
67
# File 'lib/identisure/mit_id.rb', line 65

def id
  @id
end

#ref_id ⇒ Object (readonly)

Returns the value of attribute ref_id.



65
66
67
# File 'lib/identisure/mit_id.rb', line 65

def ref_id
  @ref_id
end

#url ⇒ Object (readonly)

Returns the value of attribute url.



65
66
67
# File 'lib/identisure/mit_id.rb', line 65

def url
  @url
end

Class Method Details

.from_json(d) ⇒ Object



75
76
77
# File 'lib/identisure/mit_id.rb', line 75

def self.from_json(d)
  new(id: d['id'], ref_id: d['refId'], url: d['url'], binding_message: d['bindingMessage'])
end

Instance Method Details

#deconstruct_keys(_) ⇒ Object



71
72
73
# File 'lib/identisure/mit_id.rb', line 71

def deconstruct_keys(_)
  { id: @id, ref_id: @ref_id, url: @url, binding_message: @binding_message }
end