class Bigbank::Client::Application
Attributes
post_params[RW]
Public Class Methods
create(*args)
click to toggle source
# File lib/bigbank/client/endpoints/application.rb, line 6 def self.create(*args) self.new(*args).create end
new(post_params={})
click to toggle source
# File lib/bigbank/client/endpoints/application.rb, line 10 def initialize(post_params={}) @post_params = post_params end
Public Instance Methods
create()
click to toggle source
# File lib/bigbank/client/endpoints/application.rb, line 14 def create response = connection.post do |request| request.url "/api/" request.params = { post: "data" } request.body = { key: config.partner_key }.merge!(post_params) end ApplicationResult.new(response, connection) end