Class: Kiba::Uncommon::Destinations::ZuoraUpdater

Inherits:
Object
  • Object
show all
Defined in:
lib/kiba/uncommon/destinations/zuora_updater.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#typeObject (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_clientObject (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

#closeObject



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