lib/nissen-collect/getauthor.rb in nissen-collect-0.1.6 vs lib/nissen-collect/getauthor.rb in nissen-collect-0.1.7
- old
+ new
@@ -1,21 +1,21 @@
# -*- encoding: utf-8 -*-
module NissenCollect
class Getauthor < Action
- attr_accessor :buyer
+ attr_accessor :transaction
@@transaction_path = 'direct/autogetauthor.do'
# @bodyを初期化する
# @param [Hash] body 生成時引数
def initialize
super
- @buyer = Marshal.load(Marshal.dump(BUYER))
+ @transaction = Marshal.load(Marshal.dump(TRANSACTION))
end
# APIコールを行う
def call
- body = [@@shopInfo,@buyer].inject {|union,hash| union.merge hash}
+ body = [@@shopInfo,@transaction].inject {|union,hash| union.merge hash}
connect = NissenCollect::Client.new
connect.request('get',@@transaction_path,body)
end
end