Sha256: eefffd28efb7d46f064e61c4d64d6b8ec2733df481ac94a32d08b0bc00de6b91

Contents?: true

Size: 847 Bytes

Versions: 12

Compression:

Stored size: 847 Bytes

Contents

class Smartsend::Address
  attr_accessor :internal_id, :internal_reference, :company, :name_line1,
                :name_line2, :address_line1, :address_line2, :postal_code,
                :city, :country, :sms, :email

  def initialize(args={})
    args.each do |k, v|
      instance_variable_set "@#{k}", v
    end
  end

  def serialize
    {
      :internal_id        => internal_id,
      :internal_reference => internal_reference,
      :company            => company,
      :name_line1         => name_line1,
      :name_line2         => name_line2,
      :address_line1      => address_line1,
      :address_line2      => address_line2,
      :postal_code        => postal_code,
      :city               => city,
      :country            => country,
      :sms                => sms,
      :email              => email
    }
  end

end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
smartsend-ruby-0.5.1 lib/smartsend/address.rb
smartsend-ruby-0.5.0 lib/smartsend/address.rb
smartsend-ruby-0.4.3 lib/smartsend/address.rb
smartsend-ruby-0.4.2 lib/smartsend/address.rb
smartsend-ruby-0.4.1 lib/smartsend/address.rb
smartsend-ruby-0.4.0 lib/smartsend/address.rb
smartsend-ruby-0.3.2 lib/smartsend/address.rb
smartsend-ruby-0.3.1 lib/smartsend/address.rb
smartsend-ruby-0.3 lib/smartsend/address.rb
smartsend-ruby-0.2.2 lib/smartsend/address.rb
smartsend-ruby-0.2.1 lib/smartsend/address.rb
smartsend-ruby-0.2.0 lib/smartsend/address.rb