Class: BunqRb::Device

Inherits:
Object
  • Object
show all
Includes:
Shared
Defined in:
lib/bunq_rb/objects/device.rb

Overview

Device

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(hsh = {}) ⇒ Device

Returns a new instance of Device.



10
11
12
# File 'lib/bunq_rb/objects/device.rb', line 10

def initialize(hsh = {})
  @id = hsh["id"]
end

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



8
9
10
# File 'lib/bunq_rb/objects/device.rb', line 8

def id
  @id
end

Class Method Details

.urlObject



14
15
16
# File 'lib/bunq_rb/objects/device.rb', line 14

def self.url
  "/v1/device"
end