Sha256: fd28464d71d91b8e534e14e081f7e54347b4f84ad3bcfae9a338861c615ae2a4
Contents?: true
Size: 931 Bytes
Versions: 7
Compression:
Stored size: 931 Bytes
Contents
# frozen_string_literal: true 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
7 entries across 7 versions & 1 rubygems