Class: Ellipses::Client::Meta::Series

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
lib/ellipses/client/meta.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(array_of_locks) ⇒ Series

Returns a new instance of Series.



23
24
25
26
27
# File 'lib/ellipses/client/meta.rb', line 23

def initialize(array_of_locks)
  super

  @delegate_sd_obj = array_of_locks
end

Class Method Details

.from_array(array_of_hashes) ⇒ Object



33
34
35
36
# File 'lib/ellipses/client/meta.rb', line 33

def self.from_array(array_of_hashes)
  array_of_locks = array_of_hashes.map { |hash| Lock.from_hash hash }
  new array_of_locks
end

Instance Method Details

#to_json(*args) ⇒ Object



29
30
31
# File 'lib/ellipses/client/meta.rb', line 29

def to_json(*args)
  to_a.to_json(*args)
end