Sha256: 27083db957cb6d9c340e7a029071bcfce3223d1fe248e3b6876ae490e09bc258

Contents?: true

Size: 447 Bytes

Versions: 23

Compression:

Stored size: 447 Bytes

Contents

class CityGrid
  class API
    # Creates SuperHash from parsed_response
    # Stores response object in @response.
    # ------------------------------------ #
    class Response < CityGrid::Abstraction::SuperHash
      attr_reader :httparty
      
      def self.new httparty_response
        resp = super httparty_response.parsed_response
        resp.instance_variable_set "@httparty", httparty_response
        resp
      end
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
citygrid_api-0.0.28 lib/citygrid/api/response.rb
citygrid_api-0.0.27 lib/citygrid/api/response.rb
citygrid_api-0.0.26 lib/citygrid/api/response.rb
citygrid_api-0.0.25 lib/citygrid/api/response.rb
citygrid_api-0.0.24 lib/citygrid/api/response.rb
citygrid_api-0.0.23 lib/citygrid/api/response.rb
citygrid_api-0.0.22 lib/citygrid/api/response.rb
citygrid_api-0.0.21 lib/citygrid/api/response.rb
citygrid_api-0.0.20 lib/citygrid/api/response.rb
citygrid_api-0.0.19 lib/citygrid/api/response.rb
citygrid_api-0.0.18 lib/citygrid/api/response.rb
citygrid_api-0.0.17 lib/citygrid/api/response.rb
citygrid_api-0.0.16 lib/citygrid/api/response.rb
citygrid_api-0.0.15 lib/citygrid/api/response.rb
citygrid_api-0.0.14 lib/citygrid/api/response.rb
citygrid_api-0.0.13 lib/citygrid/api/response.rb
citygrid_api-0.0.12 lib/citygrid/api/response.rb
citygrid_api-0.0.11 lib/citygrid/api/response.rb
citygrid_api-0.0.10 lib/citygrid/api/response.rb
citygrid_api-0.0.9 lib/citygrid/api/response.rb