Class: Kiba::Uncommon::Destinations::ZuoraUpdater
- Inherits:
-
Object
- Object
- Kiba::Uncommon::Destinations::ZuoraUpdater
- Defined in:
- lib/kiba/uncommon/destinations/zuora_updater.rb
Instance Attribute Summary collapse
-
#type ⇒ Object
readonly
Returns the value of attribute type.
-
#zuora_client ⇒ Object
readonly
Returns the value of attribute zuora_client.
Instance Method Summary collapse
- #close ⇒ Object
-
#initialize(zuora_client, type) ⇒ ZuoraUpdater
constructor
A new instance of ZuoraUpdater.
- #write(row) ⇒ Object
Constructor Details
#initialize(zuora_client, type) ⇒ ZuoraUpdater
Returns a new instance of ZuoraUpdater.
13 14 15 16 |
# File 'lib/kiba/uncommon/destinations/zuora_updater.rb', line 13 def initialize(zuora_client, type) @zuora_client = zuora_client @type = type end |
Instance Attribute Details
#type ⇒ Object (readonly)
Returns the value of attribute type.
11 12 13 |
# File 'lib/kiba/uncommon/destinations/zuora_updater.rb', line 11 def type @type end |
#zuora_client ⇒ Object (readonly)
Returns the value of attribute zuora_client.
10 11 12 |
# File 'lib/kiba/uncommon/destinations/zuora_updater.rb', line 10 def zuora_client @zuora_client end |
Instance Method Details
#close ⇒ Object
22 23 |
# File 'lib/kiba/uncommon/destinations/zuora_updater.rb', line 22 def close end |
#write(row) ⇒ Object
18 19 20 |
# File 'lib/kiba/uncommon/destinations/zuora_updater.rb', line 18 def write(row) zuora_client.call! :update, :type => type, :objects => [row] end |