class NissenCollect::Modifytransaction

Attributes

buyer[RW]
deliveries[RW]

Public Class Methods

new() click to toggle source

@bodyを初期化する @param [Hash] body 生成時引数

Calls superclass method NissenCollect::Action::new
# File lib/nissen-collect/modifytransaction.rb, line 9
def initialize
  super
  @buyer = Marshal.load(Marshal.dump(BUYER))
  @deliveries = Marshal.load(Marshal.dump(DELIVERIES))
end

Public Instance Methods

call() click to toggle source

APIコールを行う

# File lib/nissen-collect/modifytransaction.rb, line 16
def call
  body = [@@shopInfo,@buyer,@deliveries].inject {|union,hash| union.merge hash}
  connect = NissenCollect::Client.new
  connect.request('get',@@transaction_path,body)
end