Class: TransparentData::Actions::Add

Inherits:
Object
  • Object
show all
Defined in:
lib/transparent_data/actions/add.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(client, source, method, parameters) ⇒ Add

Returns a new instance of Add.



6
7
8
9
10
11
# File 'lib/transparent_data/actions/add.rb', line 6

def initialize(client, source, method, parameters)
  @client = client
  @source = source
  @method = method
  @parameters = parameters
end

Instance Attribute Details

#clientObject (readonly)

Returns the value of attribute client.



4
5
6
# File 'lib/transparent_data/actions/add.rb', line 4

def client
  @client
end

#methodObject (readonly)

Returns the value of attribute method.



4
5
6
# File 'lib/transparent_data/actions/add.rb', line 4

def method
  @method
end

#parametersObject (readonly)

Returns the value of attribute parameters.



4
5
6
# File 'lib/transparent_data/actions/add.rb', line 4

def parameters
  @parameters
end

#sourceObject (readonly)

Returns the value of attribute source.



4
5
6
# File 'lib/transparent_data/actions/add.rb', line 4

def source
  @source
end

Instance Method Details

#callObject



13
14
15
# File 'lib/transparent_data/actions/add.rb', line 13

def call
  TransparentData::Request.call(client, 'add', json: build_json)
end