lib/nissen-collect/getauthor.rb in nissen-collect-0.1.5 vs lib/nissen-collect/getauthor.rb in nissen-collect-0.1.6
- old
+ new
@@ -7,10 +7,10 @@
# @bodyを初期化する
# @param [Hash] body 生成時引数
def initialize
super
- @buyer = BUYER
+ @buyer = Marshal.load(Marshal.dump(BUYER))
end
# APIコールを行う
def call
body = [@@shopInfo,@buyer].inject {|union,hash| union.merge hash}