Class: Mintchip::MintchipMessage

Inherits:
Object
  • Object
show all
Defined in:
lib/mintchip/mintchip_message.rb

Direct Known Subclasses

ValueRequestMessage

Instance Method Summary collapse

Constructor Details

#initialize(value, response_url, annotation) ⇒ MintchipMessage

Returns a new instance of MintchipMessage.



4
5
6
7
8
# File 'lib/mintchip/mintchip_message.rb', line 4

def initialize(value, response_url, annotation, *)
  @value = value
  @response_url = response_url
  @annotation = annotation
end

Instance Method Details

#to_base64Object



10
11
12
# File 'lib/mintchip/mintchip_message.rb', line 10

def to_base64
  Base64.strict_encode64(message.to_der)
end