Class: Ribbon::Intercom::Client::MockSDK

Inherits:
SDK
  • Object
show all
Defined in:
lib/ribbon/intercom/client/mock_sdk.rb

Instance Attribute Summary

Attributes inherited from SDK

#adapter

Instance Method Summary collapse

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 with_permissions(*perms, &block)
  adapter.with_permissions(*perms, &block)
end