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

Version Path
mundipagg_sdk-1.0.2 lib/gateway/address.rb
mundipagg_sdk-1.0.1 lib/gateway/address.rb
mundipagg_sdk-1.0.0 lib/gateway/address.rb
mundipagg_api-1.3.1 lib/mundipagg/address.rb
mundipagg_api-1.3.0 lib/mundipagg/address.rb
mundipagg_api-1.1.1 lib/mundipagg/address.rb
mundipagg_api-1.1.0 lib/mundipagg/address.rb
mundipagg_api-1.0.1 lib/mundipagg/address.rb
mundipagg_api-1.0.0 lib/mundipagg/address.rb