Class: OpenTopo::Catalog

Inherits:
Object
  • Object
show all
Defined in:
lib/open_topo/catalog.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(full_name:, name:, url:, date_created:, temporal_coverage:, unit: "meter") ⇒ Catalog

Returns a new instance of Catalog.



8
9
10
11
12
13
14
15
# File 'lib/open_topo/catalog.rb', line 8

def initialize(full_name:, name:, url:, date_created:, temporal_coverage:, unit: "meter")
  @full_name = full_name
  @name = name
  @url = url
  @date_created = date_created
  @temporal_coverage = temporal_coverage
  @unit = unit
end

Instance Attribute Details

#date_createdObject (readonly)

Returns the value of attribute date_created.



6
7
8
# File 'lib/open_topo/catalog.rb', line 6

def date_created
  @date_created
end

#full_nameObject (readonly)

Returns the value of attribute full_name.



6
7
8
# File 'lib/open_topo/catalog.rb', line 6

def full_name
  @full_name
end

#nameObject (readonly)

Returns the value of attribute name.



6
7
8
# File 'lib/open_topo/catalog.rb', line 6

def name
  @name
end

#temporal_coverageObject (readonly)

Returns the value of attribute temporal_coverage.



6
7
8
# File 'lib/open_topo/catalog.rb', line 6

def temporal_coverage
  @temporal_coverage
end

#unitObject (readonly)

Returns the value of attribute unit.



6
7
8
# File 'lib/open_topo/catalog.rb', line 6

def unit
  @unit
end

#urlObject (readonly)

Returns the value of attribute url.



6
7
8
# File 'lib/open_topo/catalog.rb', line 6

def url
  @url
end