Sha256: 6122f1991d934ad939229a6b50212b4e41bfe2c7144e1a8bbe7543042d5c78de

Contents?: true

Size: 330 Bytes

Versions: 3

Compression:

Stored size: 330 Bytes

Contents

module Halo
  class APIResponse

    attr_accessor :data

    def initialize(options = {})
      @data           = []
      @client         = options[:client]
    end

    def get_data(path, options)
      return if @client.nil?
      response = @client.get(path, options)
      @data = response.parsed_response
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
halo-api-0.3.1 lib/halo-api/api_response.rb
halo-api-0.3.0 lib/halo-api/api_response.rb
halo-api-0.2.1 lib/halo-api/api_response.rb