class Bookafy::Model::Appointment

Attributes

all_day[RW]
all_day_blocker[RW]
appointment_end_time[RW]
appointment_start_time[RW]
category[RW]
client_id[RW]
created_at[RW]
customer_id[RW]
description[RW]
duration[RW]
id[RW]
is_active[RW]
is_blocker[RW]
price[RW]
recurring[RW]
service[RW]
soft_delete[RW]
title[RW]
updated_at[RW]

Public Class Methods

new(attrs = {}) click to toggle source
# File lib/bookafy/model/appointment.rb, line 8
def initialize(attrs = {})
  attrs.each do |attr, val|
    if respond_to?("#{attr}=")
      send("#{attr}=", val)
    end

  end
end

Public Instance Methods

active?() click to toggle source
# File lib/bookafy/model/appointment.rb, line 17
def active?
  is_active
end
all_day?() click to toggle source
# File lib/bookafy/model/appointment.rb, line 25
def all_day?
  all_day
end
all_day_blocker?() click to toggle source
# File lib/bookafy/model/appointment.rb, line 49
def all_day_blocker?
  all_day_blocker
end
blocker?() click to toggle source
# File lib/bookafy/model/appointment.rb, line 21
def blocker?
  is_blocker
end
category_id() click to toggle source
# File lib/bookafy/model/appointment.rb, line 41
def category_id
  category['category_id'] unless category.blank?
end
category_name() click to toggle source
# File lib/bookafy/model/appointment.rb, line 45
def category_name
  category['category_name'] unless category.blank?
end
recurring?() click to toggle source
# File lib/bookafy/model/appointment.rb, line 29
def recurring?
  recurring
end
service_id() click to toggle source
# File lib/bookafy/model/appointment.rb, line 33
def service_id
  service['service_id'] unless service.blank?
end
service_name() click to toggle source
# File lib/bookafy/model/appointment.rb, line 37
def service_name
  service['service_name'] unless service.blank?
end