class Nubank::Request
Attributes
access_token[R]
endpoint[R]
method[R]
options[R]
response[R]
Public Class Methods
new(method, endpoint, access_token = nil, options = {})
click to toggle source
# File lib/nubank/request.rb, line 8 def initialize(method, endpoint, access_token = nil, options = {}) @method = method @endpoint = endpoint @access_token = access_token @options = options end
Public Instance Methods
run()
click to toggle source
# File lib/nubank/request.rb, line 15 def run response = HTTP.auth(authorization) .send(method, endpoint, options) @response = Response.new(response) end