class BunqRb::AttachmentMonetaryAccount

AttachmentMonetaryAccount

Attributes

id[R]

Public Class Methods

create(image) click to toggle source
# File lib/bunq_rb/objects/attachment_monetary_account.rb, line 10
def self.create(image)
  response = Client.send_method(:post, url(1, 1933), image)
  response.map { |resp| new(resp["Id"]) }
end
new(hsh = {}) click to toggle source
# File lib/bunq_rb/objects/attachment_monetary_account.rb, line 6
def initialize(hsh = {})
  @id = hsh["id"]
end
url(user_id, monetary_account_id) click to toggle source
# File lib/bunq_rb/objects/attachment_monetary_account.rb, line 15
def self.url(user_id, monetary_account_id)
  "/v1/user/#{user_id}/monetary-account/#{monetary_account_id}/attachment"
end