Sha256: 471764db783f924d294b361d17329a17dc965dd9868754f0899911fa26d1aa01
Contents?: true
Size: 357 Bytes
Versions: 5
Compression:
Stored size: 357 Bytes
Contents
# frozen_string_literal: true require 'ipaddr' require 'json' class IPinfo::Response attr_reader :all def initialize(response) @all = response @all.each do |name, value| instance_variable_set("@#{name}", value) c = class << self; self end c.send(:attr_accessor, name) end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
IPinfo-2.2.4 | lib/ipinfo/response.rb |
IPinfo-2.2.3 | lib/ipinfo/response.rb |
IPinfo-2.2.1 | lib/ipinfo/response.rb |
IPinfo-1.1.0 | lib/ipinfo/response.rb |
IPinfo-1.0.1 | lib/ipinfo/response.rb |