Sha256: f375deaee3ee2727a79a02d2c906bc0c5ab5f987b7fac7bca1036588d440bff6
Contents?: true
Size: 694 Bytes
Versions: 3
Compression:
Stored size: 694 Bytes
Contents
module Bunq ## # See https://doc.bunq.com/api/1/call/device-server class DeviceServers ## # +client+ an instance of +Bunq::Client+ # def initialize(client) @resource = Bunq::Resource.new(client, "/v1/device-server") @client = client end ## # https://doc.bunq.com/api/1/call/device-server/method/post def create(description) fail ArgumentError.new('description is required') unless description @resource.post(description: description, secret: @client.configuration.api_key)['Response'] end ## # https://doc.bunq.com/api/1/call/device-server/method/list def index @resource.get['Response'] end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
bunq-client-0.1.2 | lib/bunq/device_servers.rb |
bunq-client-0.1.1 | lib/bunq/device_servers.rb |
bunq-client-0.1.0 | lib/bunq/device_servers.rb |