Class: ECMBlockchain::DigitalSignature
- Inherits:
-
Object
- Object
- ECMBlockchain::DigitalSignature
- Includes:
- ActiveModel::Validations
- Defined in:
- lib/ecm-blockchain-api/models/digital_signature_model.rb
Instance Attribute Summary collapse
-
#cms ⇒ Object
readonly
Returns the value of attribute cms.
-
#signatureType ⇒ Object
Returns the value of attribute signatureType.
-
#standard ⇒ Object
Returns the value of attribute standard.
-
#timestamp ⇒ Object
readonly
Returns the value of attribute timestamp.
-
#validated ⇒ Object
readonly
Returns the value of attribute validated.
Instance Method Summary collapse
- #added? ⇒ Boolean
-
#initialize(data = {}) ⇒ DigitalSignature
constructor
A new instance of DigitalSignature.
Constructor Details
#initialize(data = {}) ⇒ DigitalSignature
Returns a new instance of DigitalSignature.
12 13 14 15 16 17 18 19 |
# File 'lib/ecm-blockchain-api/models/digital_signature_model.rb', line 12 def initialize(data={}) data ||= {} @standard = data[:standard] @signatureType = data[:signatureType] @cms = data[:cms] @validated = data[:validated] @timestamp = data[:timestamp] end |
Instance Attribute Details
#cms ⇒ Object (readonly)
Returns the value of attribute cms.
6 7 8 |
# File 'lib/ecm-blockchain-api/models/digital_signature_model.rb', line 6 def cms @cms end |
#signatureType ⇒ Object
Returns the value of attribute signatureType.
5 6 7 |
# File 'lib/ecm-blockchain-api/models/digital_signature_model.rb', line 5 def signatureType @signatureType end |
#standard ⇒ Object
Returns the value of attribute standard.
5 6 7 |
# File 'lib/ecm-blockchain-api/models/digital_signature_model.rb', line 5 def standard @standard end |
#timestamp ⇒ Object (readonly)
Returns the value of attribute timestamp.
6 7 8 |
# File 'lib/ecm-blockchain-api/models/digital_signature_model.rb', line 6 def @timestamp end |
#validated ⇒ Object (readonly)
Returns the value of attribute validated.
6 7 8 |
# File 'lib/ecm-blockchain-api/models/digital_signature_model.rb', line 6 def validated @validated end |
Instance Method Details
#added? ⇒ Boolean
21 22 23 |
# File 'lib/ecm-blockchain-api/models/digital_signature_model.rb', line 21 def added? self.valid? end |