Class: Topographer::Importer::Input::SourceData

Inherits:
Object
  • Object
show all
Defined in:
lib/topographer/importer/input/source_data.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#dataObject (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_identifierObject (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

Returns:

  • (Boolean)


9
10
11
# File 'lib/topographer/importer/input/source_data.rb', line 9

def empty?
  @data.empty?
end