Sha256: 550799a877c59a0109eed62066cd1d4f2a4339770c17bf0bcf099e2d24f80a56

Contents?: true

Size: 550 Bytes

Versions: 4

Compression:

Stored size: 550 Bytes

Contents

class BillingAddress
  # 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

  # CEP
  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

4 entries across 4 versions & 2 rubygems

Version Path
stone_ecommerce-1.0.3 lib/gateway/Address/billing_address.rb
mundipagg_sdk-1.0.3 lib/gateway/Address/billing_address.rb
stone_ecommerce-1.0.2 lib/gateway/Address/billing_address.rb
stone_ecommerce-1.0.0 lib/gateway/Address/billing_address.rb