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