Class: TransparentData::Actions::Add
- Inherits:
-
Object
- Object
- TransparentData::Actions::Add
- Defined in:
- lib/transparent_data/actions/add.rb
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
-
#method ⇒ Object
readonly
Returns the value of attribute method.
-
#parameters ⇒ Object
readonly
Returns the value of attribute parameters.
-
#source ⇒ Object
readonly
Returns the value of attribute source.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(client, source, method, parameters) ⇒ Add
constructor
A new instance of Add.
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
#client ⇒ Object (readonly)
Returns the value of attribute client.
4 5 6 |
# File 'lib/transparent_data/actions/add.rb', line 4 def client @client end |
#method ⇒ Object (readonly)
Returns the value of attribute method.
4 5 6 |
# File 'lib/transparent_data/actions/add.rb', line 4 def method @method end |
#parameters ⇒ Object (readonly)
Returns the value of attribute parameters.
4 5 6 |
# File 'lib/transparent_data/actions/add.rb', line 4 def parameters @parameters end |
#source ⇒ Object (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
#call ⇒ Object
13 14 15 |
# File 'lib/transparent_data/actions/add.rb', line 13 def call TransparentData::Request.call(client, 'add', json: build_json) end |