class BunqRb::RequestInquiry

RequestInquiry

Attributes

id[R]
status[R]

Public Class Methods

create(hash = {}) click to toggle source
# File lib/bunq_rb/objects/request_inquiry.rb, line 19
def self.create(hash = {})
  response = Client.send_method(:post, url(1, 1933), hash)
  new(response[0]["Id"])
end
new(hsh = {}) click to toggle source
# File lib/bunq_rb/objects/request_inquiry.rb, line 10
def initialize(hsh = {})
  @id = hsh["id"]
  @status = hsh["status"]
end
url(user_id, monetary_account_id) click to toggle source
# File lib/bunq_rb/objects/request_inquiry.rb, line 15
def self.url(user_id, monetary_account_id)
  "/v1/user/#{user_id}/monetary-account/#{monetary_account_id}/request-inquiry"
end