Sha256: 6df2dfd1836030535437ce288b59126887325d88aec46bd73c147179f1546e40

Contents?: true

Size: 900 Bytes

Versions: 5

Compression:

Stored size: 900 Bytes

Contents

require 'gecko/record/base'

module Gecko
  module Record
    class Address < Base
      belongs_to :company, writeable_on: :create

      attribute :label,        String

      attribute :first_name,   String
      attribute :last_name,    String
      attribute :company_name, String
      attribute :address1,     String
      attribute :address2,     String
      attribute :suburb,       String
      attribute :city,         String
      attribute :state,        String
      attribute :country,      String
      attribute :country_code, String
      attribute :zip_code,     String

      attribute :phone_number, String
      attribute :email,        String

      attribute :status,       String,  readonly: true
    end

    class AddressAdapter < BaseAdapter
      # Override plural_path to properly pluralize address
      def plural_path
        'addresses'
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
gecko-ruby-0.9.1 lib/gecko/record/address.rb
gecko-ruby-0.9.0 lib/gecko/record/address.rb
gecko-ruby-0.8.0 lib/gecko/record/address.rb
gecko-ruby-0.7.1 lib/gecko/record/address.rb
gecko-ruby-0.7.0 lib/gecko/record/address.rb