Class: Ribbon::Intercom::Client::MockSDK
- Defined in:
- lib/ribbon/intercom/client/mock_sdk.rb
Instance Attribute Summary
Attributes inherited from SDK
Instance Method Summary collapse
-
#initialize(service) ⇒ MockSDK
constructor
A new instance of MockSDK.
- #with_permissions(*perms, &block) ⇒ Object
Methods inherited from SDK
#begin, #call, #connect, #connected?, #dup, #headers, #send_packet
Methods included from Utils::Mixins::MockSafe
#mock_safe, #mock_safe!, #mock_safe?
Constructor Details
#initialize(service) ⇒ MockSDK
Returns a new instance of MockSDK.
4 5 6 |
# File 'lib/ribbon/intercom/client/mock_sdk.rb', line 4 def initialize(service) super(Adapters::MockAdapter.new(service)) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Ribbon::Intercom::Client::SDK
Instance Method Details
#with_permissions(*perms, &block) ⇒ Object
8 9 10 |
# File 'lib/ribbon/intercom/client/mock_sdk.rb', line 8 def (*perms, &block) adapter.(*perms, &block) end |