class SpyFu::Api::Base

Attributes

client[R]

Public Class Methods

new(client) click to toggle source
# File lib/spyfu/api/base.rb, line 6
def initialize(client)
  @client = client
end

Public Instance Methods

send_get(path, params) click to toggle source
# File lib/spyfu/api/base.rb, line 10
def send_get path, params
  SpyFu::Request.new('GET', "#{self.class::BASE_ENDPOINT}/#{path}", params, nil, client.app_id, client.secret_key).request
end