class Flowthings::PlatformObjectInterface
Public Class Methods
new(connection, options={})
click to toggle source
then make a call here to query the object type and give it the right endpoint function type.
# 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
Private Instance Methods
check_platform_object()
click to toggle source
# File lib/flowthings/platform_objects/platform_object_interface.rb, line 36 def check_platform_object if self.class == PlatformObjectInterface raise Flowthings::Error::ObjectError, "Use the actual platform objects" end end