class BunqRb::DeviceServer

DeviceServer

Attributes

id[R]

Public Class Methods

create(hash = {}) click to toggle source
# File lib/bunq_rb/objects/device_server.rb, line 18
def self.create(hash = {})
  response = Client.send_method(:post, url, hash)
  new(response[0]["Id"])
end
new(hsh = {}) click to toggle source
# File lib/bunq_rb/objects/device_server.rb, line 10
def initialize(hsh = {})
  @id = hsh["id"]
end
url() click to toggle source
# File lib/bunq_rb/objects/device_server.rb, line 14
def self.url
  "/v1/device-server"
end