Class: Tenkit::Metadata
- Inherits:
-
Object
- Object
- Tenkit::Metadata
- Defined in:
- lib/tenkit/metadata.rb
Instance Attribute Summary collapse
-
#attribution_url ⇒ Object
readonly
Returns the value of attribute attribution_url.
-
#expire_time ⇒ Object
readonly
Returns the value of attribute expire_time.
-
#latitude ⇒ Object
readonly
Returns the value of attribute latitude.
-
#longitude ⇒ Object
readonly
Returns the value of attribute longitude.
-
#read_time ⇒ Object
readonly
Returns the value of attribute read_time.
-
#reported_time ⇒ Object
readonly
Returns the value of attribute reported_time.
-
#units ⇒ Object
readonly
Returns the value of attribute units.
-
#version ⇒ Object
readonly
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(metadata) ⇒ Metadata
constructor
A new instance of Metadata.
Constructor Details
#initialize(metadata) ⇒ Metadata
Returns a new instance of Metadata.
12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/tenkit/metadata.rb', line 12 def initialize() return if .nil? @attribution_url = ['attributionURL'] @expire_time = ['expireTime'] @latitude = ['latitude'] @longitude = ['longitude'] @read_time = ['readTime'] @reported_time = ['reportedTime'] @units = ['units'] @version = ['version'] end |
Instance Attribute Details
#attribution_url ⇒ Object (readonly)
Returns the value of attribute attribution_url.
3 4 5 |
# File 'lib/tenkit/metadata.rb', line 3 def attribution_url @attribution_url end |
#expire_time ⇒ Object (readonly)
Returns the value of attribute expire_time.
3 4 5 |
# File 'lib/tenkit/metadata.rb', line 3 def expire_time @expire_time end |
#latitude ⇒ Object (readonly)
Returns the value of attribute latitude.
3 4 5 |
# File 'lib/tenkit/metadata.rb', line 3 def latitude @latitude end |
#longitude ⇒ Object (readonly)
Returns the value of attribute longitude.
3 4 5 |
# File 'lib/tenkit/metadata.rb', line 3 def longitude @longitude end |
#read_time ⇒ Object (readonly)
Returns the value of attribute read_time.
3 4 5 |
# File 'lib/tenkit/metadata.rb', line 3 def read_time @read_time end |
#reported_time ⇒ Object (readonly)
Returns the value of attribute reported_time.
3 4 5 |
# File 'lib/tenkit/metadata.rb', line 3 def reported_time @reported_time end |
#units ⇒ Object (readonly)
Returns the value of attribute units.
3 4 5 |
# File 'lib/tenkit/metadata.rb', line 3 def units @units end |
#version ⇒ Object (readonly)
Returns the value of attribute version.
3 4 5 |
# File 'lib/tenkit/metadata.rb', line 3 def version @version end |