Class: Pleiades::Client::Wrapper

Inherits:
Object
  • Object
show all
Defined in:
lib/pleiades/core/client/wrapper.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ Wrapper

Returns a new instance of Wrapper.



6
7
8
9
# File 'lib/pleiades/core/client/wrapper.rb', line 6

def initialize(client)
  @obj = client
  @histories = []
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method, *args, &block) ⇒ Object (private)



13
14
15
16
17
# File 'lib/pleiades/core/client/wrapper.rb', line 13

def method_missing(method, *args, &block)
  return super unless @obj.respond_to?(method)

  execute(method, *args)
end

Instance Attribute Details

#historiesObject (readonly)

Returns the value of attribute histories.



4
5
6
# File 'lib/pleiades/core/client/wrapper.rb', line 4

def histories
  @histories
end