class Fixably::Customer
Public Instance Methods
either_email_or_phone_set()
click to toggle source
# File lib/fixably/resources/customer.rb, line 26 def either_email_or_phone_set return if email.present? || phone.present? errors.add(:base, "Either email or phone must be present") end
remove_on_encode(= super().concat(%w[tags]))
click to toggle source
# File lib/fixably/resources/customer.rb, line 32 def remove_on_encode = super().concat(%w[tags]) class ShippingAddress < ApplicationResource schema do string :name string :address1 string :address2 string :address3 string :zip string :city string :state string :country end end class BillingAddress < ApplicationResource schema do string :name string :address1 string :address2 string :address3 string :zip string :city string :state string :country end end class Child < Customer actions %i[show] end end