Class: Mpp::Methods::Tempo::Schemas::TransactionCredentialPayload
- Inherits:
-
Data
- Object
- Data
- Mpp::Methods::Tempo::Schemas::TransactionCredentialPayload
- Defined in:
- lib/mpp/methods/tempo/schemas.rb
Instance Attribute Summary collapse
-
#signature ⇒ Object
readonly
Returns the value of attribute signature.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type:, signature:) ⇒ TransactionCredentialPayload
constructor
A new instance of TransactionCredentialPayload.
Constructor Details
#initialize(type:, signature:) ⇒ TransactionCredentialPayload
Returns a new instance of TransactionCredentialPayload.
60 61 62 63 64 65 |
# File 'lib/mpp/methods/tempo/schemas.rb', line 60 def initialize(type:, signature:) raise ArgumentError, "type must be 'transaction'" unless type == "transaction" raise ArgumentError, "signature must be a hex string" unless signature.match?(HEX_PATTERN) super end |
Instance Attribute Details
#signature ⇒ Object (readonly)
Returns the value of attribute signature
59 60 61 |
# File 'lib/mpp/methods/tempo/schemas.rb', line 59 def signature @signature end |
#type ⇒ Object (readonly)
Returns the value of attribute type
59 60 61 |
# File 'lib/mpp/methods/tempo/schemas.rb', line 59 def type @type end |