Class: Metar::Data::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/metar/data/base.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(raw) ⇒ Base

Returns a new instance of Base.



12
13
14
# File 'lib/metar/data/base.rb', line 12

def initialize(raw)
  @raw = raw
end

Instance Attribute Details

#rawObject (readonly)

Returns the value of attribute raw.



10
11
12
# File 'lib/metar/data/base.rb', line 10

def raw
  @raw
end

Class Method Details

.parse(raw) ⇒ Object



6
7
8
# File 'lib/metar/data/base.rb', line 6

def self.parse(raw)
  new(raw)
end

Instance Method Details

#valueObject



16
17
18
# File 'lib/metar/data/base.rb', line 16

def value
  raw
end