module PlanningCenter::LazyAttributes
Attributes
load_state[W]
Public Class Methods
included(base)
click to toggle source
# File lib/planning_center/lazy_attributes.rb, line 18 def self.included(base) base.extend(ClassMethods) end
Public Instance Methods
load_state()
click to toggle source
# File lib/planning_center/lazy_attributes.rb, line 24 def load_state @load_state ||= :ghost end
Private Instance Methods
load_attrs()
click to toggle source
# File lib/planning_center/lazy_attributes.rb, line 30 def load_attrs return if load_state == :loaded self.attrs = complete_attrs self.load_state = :loaded end