Module: ApiClient::Mixins::ConnectionHooks
- Included in:
- Base
- Defined in:
- lib/api_client/mixins/connection_hooks.rb
Instance Attribute Summary collapse
-
#connection_hooks ⇒ Object
Returns the value of attribute connection_hooks.
Instance Method Summary collapse
Instance Attribute Details
#connection_hooks ⇒ Object
Returns the value of attribute connection_hooks.
7 8 9 |
# File 'lib/api_client/mixins/connection_hooks.rb', line 7 def connection_hooks @connection_hooks end |
Instance Method Details
#connection(&block) ⇒ Object
9 10 11 12 13 |
# File 'lib/api_client/mixins/connection_hooks.rb', line 9 def connection(&block) @connection_hooks ||= [] @connection_hooks.push(block) if block @connection_hooks end |