Class: ECMBlockchain::DataContent
- Inherits:
-
Object
- Object
- ECMBlockchain::DataContent
- Includes:
- ActiveModel::Validations
- Defined in:
- lib/ecm-blockchain-api/models/data_content_file.rb,
lib/ecm-blockchain-api/models/data_content_model.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
Instance Method Summary collapse
- #added? ⇒ Boolean
-
#initialize(data = {}) ⇒ DataContent
constructor
A new instance of DataContent.
Constructor Details
#initialize(data = {}) ⇒ DataContent
Returns a new instance of DataContent.
5 6 7 |
# File 'lib/ecm-blockchain-api/models/data_content_file.rb', line 5 def initialize(data={}) end |
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data.
4 5 6 |
# File 'lib/ecm-blockchain-api/models/data_content_model.rb', line 4 def data @data end |
Instance Method Details
#added? ⇒ Boolean
14 15 16 |
# File 'lib/ecm-blockchain-api/models/data_content_model.rb', line 14 def added? @data.any? end |