Class: Flowthings::PlatformObjectInterface
- Inherits:
-
Object
- Object
- Flowthings::PlatformObjectInterface
- Includes:
- Crud::Base, Request
- Defined in:
- lib/flowthings/platform_objects/platform_object_interface.rb
Instance Method Summary collapse
-
#initialize(connection, options = {}) ⇒ PlatformObjectInterface
constructor
then make a call here to query the object type and give it the right endpoint function type.
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, ={}) check_platform_object Configuration::VALID_CONFIG_KEYS.each do |key| instance_variable_set "@#{key}", [key] end @connection = connection @account_name=[:account_name] @account_token=[:account_token] end |