Class: Ellipses::Client::Meta::Source
- Inherits:
-
Struct
- Object
- Struct
- Ellipses::Client::Meta::Source
- Defined in:
- lib/ellipses/client/meta.rb
Instance Attribute Summary collapse
-
#series ⇒ Object
Returns the value of attribute series.
-
#source ⇒ Object
Returns the value of attribute source.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#series ⇒ Object
Returns the value of attribute series
12 13 14 |
# File 'lib/ellipses/client/meta.rb', line 12 def series @series end |
#source ⇒ Object
Returns the value of attribute source
12 13 14 |
# File 'lib/ellipses/client/meta.rb', line 12 def source @source end |
Class Method Details
.from_hash(hash) ⇒ Object
17 18 19 |
# File 'lib/ellipses/client/meta.rb', line 17 def self.from_hash(hash) new source: hash[:source], series: Series.from_array(hash[:series]) end |
Instance Method Details
#to_json(*args) ⇒ Object
13 14 15 |
# File 'lib/ellipses/client/meta.rb', line 13 def to_json(*args) to_h.to_json(*args) end |