Class: Flowthings::PlatformObjectInterface

Inherits:
Object
  • Object
show all
Includes:
Crud::Base, Request
Defined in:
lib/flowthings/platform_objects/platform_object_interface.rb

Direct Known Subclasses

ApiTask, Drop, Flow, Group, Identity, Mqtt, Share, Token, Track

Instance Method Summary collapse

Methods included from Crud::Base

#create, #destroy, #read, #read_many, #update

Constructor Details

#initialize(connection, options = {}) ⇒ PlatformObjectInterface

then make a call here to query the object type and give it the right endpoint function type.



21
22
23
24
25
26
27
28
29
30
31
32
# File 'lib/flowthings/platform_objects/platform_object_interface.rb', line 21

def initialize(connection, options={})
  check_platform_object

  Configuration::VALID_CONFIG_KEYS.each do |key|
    instance_variable_set "@#{key}", options[key]
  end

  @connection = connection

  @account_name=options[:account_name]
  @account_token=options[:account_token]
end