Class: Topographer::Importer::Input::SourceData
- Inherits:
-
Object
- Object
- Topographer::Importer::Input::SourceData
- Defined in:
- lib/topographer/importer/input/source_data.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#source_identifier ⇒ Object
readonly
Returns the value of attribute source_identifier.
Instance Method Summary collapse
- #empty? ⇒ Boolean
-
#initialize(source_identifier, data) ⇒ SourceData
constructor
A new instance of SourceData.
Constructor Details
#initialize(source_identifier, data) ⇒ SourceData
Returns a new instance of SourceData.
4 5 6 7 |
# File 'lib/topographer/importer/input/source_data.rb', line 4 def initialize(source_identifier, data) @source_identifier = source_identifier @data = data end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
2 3 4 |
# File 'lib/topographer/importer/input/source_data.rb', line 2 def data @data end |
#source_identifier ⇒ Object (readonly)
Returns the value of attribute source_identifier.
2 3 4 |
# File 'lib/topographer/importer/input/source_data.rb', line 2 def source_identifier @source_identifier end |
Instance Method Details
#empty? ⇒ Boolean
9 10 11 |
# File 'lib/topographer/importer/input/source_data.rb', line 9 def empty? @data.empty? end |