Sha256: 0f89e4db28098a82378882cc91a4bb29c1ee59f8971ba0d6d97c27d5c55d00af

Contents?: true

Size: 588 Bytes

Versions: 9

Compression:

Stored size: 588 Bytes

Contents

class DeliveryAddress
  # País. Opções: Brazil, USA, Argentina, Bolivia, Chile, Colombia, Uruguay, Mexico, Paraguay
  attr_accessor :Country

  # Estado
  attr_accessor :State

  # Cidade
  attr_accessor :City

  # Distrito
  attr_accessor :District

  # Logradouro
  attr_accessor :Street

  # Número
  attr_accessor :Number

  # Complemento
  attr_accessor :Complement

  # zip code
  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/delivery_address.rb
mundipagg_sdk-1.0.1 lib/gateway/Address/delivery_address.rb
mundipagg_sdk-1.0.0 lib/gateway/Address/delivery_address.rb
mundipagg_api-1.3.1 lib/mundipagg/Address/delivery_address.rb
mundipagg_api-1.3.0 lib/mundipagg/Address/delivery_address.rb
mundipagg_api-1.1.1 lib/mundipagg/Address/delivery_address.rb
mundipagg_api-1.1.0 lib/mundipagg/Address/delivery_address.rb
mundipagg_api-1.0.1 lib/mundipagg/Address/delivery_address.rb
mundipagg_api-1.0.0 lib/mundipagg/Address/delivery_address.rb