Sha256: 315ff582b4d9e19ddc2db0c2adef5fe3cc8c426406f38a3cedcd5db3cd86882f
Contents?: true
Size: 384 Bytes
Versions: 9
Compression:
Stored size: 384 Bytes
Contents
class Address attr_accessor :Country attr_accessor :State attr_accessor :City attr_accessor :District attr_accessor :Street attr_accessor :Number attr_accessor :Complement attr_accessor :ZipCode def to_json hash = {} instance_variables.each {|var| hash[var.to_s.delete('@')] = instance_variable_get(var) } hash end end
Version data entries
9 entries across 9 versions & 2 rubygems