Class: Newslettre::APIModuleProxy

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/newslettre/api_module_proxy.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(owner, target) ⇒ APIModuleProxy

Returns a new instance of APIModuleProxy.



7
8
9
10
# File 'lib/newslettre/api_module_proxy.rb', line 7

def initialize owner, target
  @owner = owner
  @target = target
end

Instance Attribute Details

#ownerObject (readonly)

Returns the value of attribute owner.



6
7
8
# File 'lib/newslettre/api_module_proxy.rb', line 6

def owner
  @owner
end

#targetObject (readonly)

Returns the value of attribute target.



6
7
8
# File 'lib/newslettre/api_module_proxy.rb', line 6

def target
  @target
end

Instance Method Details

#==(other) ⇒ Object



21
22
23
# File 'lib/newslettre/api_module_proxy.rb', line 21

def == other
  target == other
end

#to_aObject



17
18
19
# File 'lib/newslettre/api_module_proxy.rb', line 17

def to_a
  target.list
end