Method: Megam::API#post_billinghistories

Defined in:
lib/megam/api/billinghistories.rb

#post_billinghistories(new_billinghistory) ⇒ Object



23
24
25
26
27
28
29
30
31
32
# File 'lib/megam/api/billinghistories.rb', line 23

def post_billinghistories(new_billinghistory)
  @options = {:path => '/billinghistories/content',
    :body => Megam::JSONCompat.to_json(new_billinghistory)}.merge(@options)

  request(
    :expects  => 201,
    :method   => :post,
    :body     => @options[:body]
  )
end