class BunqRb::SessionServer
Constants
- URI
Attributes
id[R]
Public Class Methods
create(hash = {})
click to toggle source
# File lib/bunq_rb/objects/session_server.rb, line 12 def self.create(hash = {}) response = Client.send_method(:post, URI, hash) [new(response[0]["Id"]), response[1]["Token"], response[1]["UserCompany"]] end
new(hsh = {})
click to toggle source
# File lib/bunq_rb/objects/session_server.rb, line 8 def initialize(hsh = {}) @id = hsh["id"] end