Class: Newslettre::APIModuleProxy
- Inherits:
-
Object
- Object
- Newslettre::APIModuleProxy
- Extended by:
- Forwardable
- Defined in:
- lib/newslettre/api_module_proxy.rb
Instance Attribute Summary collapse
-
#owner ⇒ Object
readonly
Returns the value of attribute owner.
-
#target ⇒ Object
readonly
Returns the value of attribute target.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(owner, target) ⇒ APIModuleProxy
constructor
A new instance of APIModuleProxy.
- #to_a ⇒ Object
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
#owner ⇒ Object (readonly)
Returns the value of attribute owner.
6 7 8 |
# File 'lib/newslettre/api_module_proxy.rb', line 6 def owner @owner end |
#target ⇒ Object (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_a ⇒ Object
17 18 19 |
# File 'lib/newslettre/api_module_proxy.rb', line 17 def to_a target.list end |