Class: Ellipses::Client::Meta
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- Ellipses::Client::Meta
show all
- Defined in:
- lib/ellipses/client/meta.rb
Defined Under Namespace
Classes: Insertion, Lock, Series, Source
Constant Summary
collapse
- Error =
Class.new Error
Class Method Summary
collapse
Instance Method Summary
collapse
Constructor Details
#initialize(array_of_sources) ⇒ Meta
63
64
65
66
67
|
# File 'lib/ellipses/client/meta.rb', line 63
def initialize(array_of_sources)
super
@delegate_sd_obj = array_of_sources
end
|
Class Method Details
.from_array(array_of_hashes) ⇒ Object
73
74
75
76
|
# File 'lib/ellipses/client/meta.rb', line 73
def self.from_array(array_of_hashes)
array_of_sources = array_of_hashes.map { |hash| Source.from_hash(hash) }
new array_of_sources
end
|
Instance Method Details
#to_json(*args) ⇒ Object
69
70
71
|
# File 'lib/ellipses/client/meta.rb', line 69
def to_json(*args)
to_a.to_json(*args)
end
|