Class: SeisRuby::Data::Cmtsolution
- Inherits:
-
SeisRuby::Data
- Object
- SeisRuby::Data
- SeisRuby::Data::Cmtsolution
- Defined in:
- lib/seis_ruby/data/cmtsolution.rb
Defined Under Namespace
Classes: Centroid, Hypocenter
Instance Attribute Summary collapse
-
#centroid ⇒ Object
Returns the value of attribute centroid.
-
#hypocenter ⇒ Object
Returns the value of attribute hypocenter.
Attributes inherited from SeisRuby::Data
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(raw_data, meta_data) ⇒ Cmtsolution
constructor
A new instance of Cmtsolution.
Constructor Details
#initialize(raw_data, meta_data) ⇒ Cmtsolution
Returns a new instance of Cmtsolution.
12 13 14 15 16 |
# File 'lib/seis_ruby/data/cmtsolution.rb', line 12 def initialize(raw_data, ) @raw_data = raw_data @meta_data = parse! end |
Instance Attribute Details
#centroid ⇒ Object
Returns the value of attribute centroid.
18 19 20 |
# File 'lib/seis_ruby/data/cmtsolution.rb', line 18 def centroid @centroid end |
#hypocenter ⇒ Object
Returns the value of attribute hypocenter.
17 18 19 |
# File 'lib/seis_ruby/data/cmtsolution.rb', line 17 def hypocenter @hypocenter end |
Class Method Details
.load(raw_data, meta_data) ⇒ Object
8 9 10 |
# File 'lib/seis_ruby/data/cmtsolution.rb', line 8 def self.load(raw_data, ) new(raw_data, ) end |