Module: Keepcon::Integration

Defined in:
lib/keepcon/integration.rb

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



11
12
13
# File 'lib/keepcon/integration.rb', line 11

def self.included(base)
  base.extend(ClassMethods)
end

Instance Method Details

#keepcon_entity(context) ⇒ Object



7
8
9
# File 'lib/keepcon/integration.rb', line 7

def keepcon_entity(context)
  Entity.new(context: context, instance: self)
end

#send_to_keepcon(context, mode) ⇒ Object



3
4
5
# File 'lib/keepcon/integration.rb', line 3

def send_to_keepcon(context, mode)
  keepcon_entity(context).send_data(mode)
end