Class: Responsys::Api::Object::InteractObject

Inherits:
Object
  • Object
show all
Defined in:
lib/responsys/api/object/interact_object.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(folder_name, object_name) ⇒ InteractObject

Returns a new instance of InteractObject.



7
8
9
10
# File 'lib/responsys/api/object/interact_object.rb', line 7

def initialize(folder_name, object_name)
  @folder_name = folder_name
  @object_name = object_name
end

Instance Attribute Details

#folder_nameObject

Returns the value of attribute folder_name.



5
6
7
# File 'lib/responsys/api/object/interact_object.rb', line 5

def folder_name
  @folder_name
end

#object_nameObject

Returns the value of attribute object_name.



5
6
7
# File 'lib/responsys/api/object/interact_object.rb', line 5

def object_name
  @object_name
end

Instance Method Details

#to_apiObject



12
13
14
# File 'lib/responsys/api/object/interact_object.rb', line 12

def to_api
  { folderName: @folder_name, objectName: @object_name }
end