Class: SpreeCmCommissioner::Tenant

Inherits:
Base
  • Object
show all
Extended by:
FriendlyId
Includes:
JsonPreferenceValidator, TenantPreference
Defined in:
app/models/spree_cm_commissioner/tenant.rb

Instance Method Summary collapse

Instance Method Details

#active_vendorObject



32
33
34
# File 'app/models/spree_cm_commissioner/tenant.rb', line 32

def active_vendor
  vendors.where(state: :active).first
end

#formatted_urlObject



40
41
42
# File 'app/models/spree_cm_commissioner/tenant.rb', line 40

def formatted_url
  format_host(host)
end

#payment_urlObject



44
45
46
# File 'app/models/spree_cm_commissioner/tenant.rb', line 44

def payment_url
  format_host(payment_host)
end

#urlObject



36
37
38
# File 'app/models/spree_cm_commissioner/tenant.rb', line 36

def url
  host
end