Class: ECMBlockchain::DataContent

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#dataObject

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

Returns:

  • (Boolean)


14
15
16
# File 'lib/ecm-blockchain-api/models/data_content_model.rb', line 14

def added?
  @data.any?
end