class Battlenet::APIResponse

Attributes

data[RW]

Public Class Methods

new(options={}) click to toggle source
# File lib/battlenet/api/api_response.rb, line 6
def initialize(options={})
  @data           = []
  @client         = options[:client]
end

Public Instance Methods

get_data(path, options) click to toggle source
# File lib/battlenet/api/api_response.rb, line 11
def get_data(path, options)
  unless @client.nil?
    response = @client.get(path, options)
    @data = response.parsed_response
  end
end