Sha256: d47b4dd609458c9f5c9a37f654c6cf3152f700cd052c2fdb4c2a275c767baef8
Contents?: true
Size: 906 Bytes
Versions: 8
Compression:
Stored size: 906 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 :zip_code, String attribute :phone_number, String attribute :email, String attribute :status, String, readonly: true alias_method :country_code, :country end class AddressAdapter < BaseAdapter # Override plural_path to properly pluralize address def plural_path 'addresses' end end end end
Version data entries
8 entries across 8 versions & 1 rubygems