Class: ECMBlockchain::DigitalSignature

Inherits:
Object
  • Object
show all
Includes:
ActiveModel::Validations
Defined in:
lib/ecm-blockchain-api/models/digital_signature_model.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#cmsObject (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

#signatureTypeObject

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

#standardObject

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

#timestampObject (readonly)

Returns the value of attribute timestamp.



6
7
8
# File 'lib/ecm-blockchain-api/models/digital_signature_model.rb', line 6

def timestamp
  @timestamp
end

#validatedObject (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

Returns:

  • (Boolean)


21
22
23
# File 'lib/ecm-blockchain-api/models/digital_signature_model.rb', line 21

def added?
  self.valid?
end