module Recharge::HTTPRequest::Create
Create
an new record for the included/extended entity
Arguments¶ ↑
- data (Hash)
-
New record's attributes
See the appropriate create call in ReCharge’s documentation for valid attributes
Returns¶ ↑
An instance of the created entity
Errors¶ ↑
Recharge::ConnectionError, Recharge::RequestError
Public Instance Methods
create(data)
click to toggle source
# File lib/recharge/http_request.rb, line 144 def create(data) new(POST(self::PATH, data)[self::SINGLE]) end