Sha256: 91effd9d9993c94a65aaecb20b0229160cc3fdae471b677b7cd1007e93cfad5f
Contents?: true
Size: 883 Bytes
Versions: 2
Compression:
Stored size: 883 Bytes
Contents
require 'gecko/record/base' module Gecko module Record class Address < Base belongs_to :company 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
gecko-ruby-0.1.0 | lib/gecko/record/address.rb |
gecko-ruby-0.0.10 | lib/gecko/record/address.rb |