Class: Bigbank::Client::Field

Inherits:
Endpoint
  • Object
show all
Defined in:
lib/bigbank/client/endpoints/field.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Endpoint

#config, #connection, #user_agent

Class Method Details

.allObject



4
5
6
# File 'lib/bigbank/client/endpoints/field.rb', line 4

def self.all
  self.new.all
end

Instance Method Details

#allObject



8
9
10
11
12
13
14
15
# File 'lib/bigbank/client/endpoints/field.rb', line 8

def all
  response = connection.get do |request|
    request.url "/api/"
    request.params = { get: "values", key: config.partner_key }
  end

  Result.new(response)
end