Class: ConvenientService::Common::Plugins::HasInstanceProxy::Entities::InstanceProxy
- Inherits:
-
Object
- Object
- ConvenientService::Common::Plugins::HasInstanceProxy::Entities::InstanceProxy
- Defined in:
- lib/convenient_service/common/plugins/has_instance_proxy/entities/instance_proxy.rb
Instance Method Summary collapse
- #==(other) ⇒ Boolean?
- #initialize(target:) ⇒ void constructor private
-
#instance_proxy_target ⇒ Object
Can be any type.
Constructor Details
#initialize(target:) ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
15 16 17 |
# File 'lib/convenient_service/common/plugins/has_instance_proxy/entities/instance_proxy.rb', line 15 def initialize(target:) @__convenient_service_instance_proxy_target__ = target end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing ⇒ Object (private)
Returns Can be any type.
68 69 70 |
# File 'lib/convenient_service/common/plugins/has_instance_proxy/entities/instance_proxy.rb', line 68 def method_missing(...) ::ConvenientService.reraise { instance_proxy_target.public_send(...) } end |
Instance Method Details
#==(other) ⇒ Boolean?
37 38 39 40 41 42 43 |
# File 'lib/convenient_service/common/plugins/has_instance_proxy/entities/instance_proxy.rb', line 37 def ==(other) return unless other.instance_of?(self.class) return false if instance_proxy_target != other.instance_proxy_target true end |
#instance_proxy_target ⇒ Object
Returns Can be any type.
24 25 26 |
# File 'lib/convenient_service/common/plugins/has_instance_proxy/entities/instance_proxy.rb', line 24 def instance_proxy_target @__convenient_service_instance_proxy_target__ end |