Module: PettanrPettanCommonsV01Licenses::AttributeModule

Defined in:
lib/pettanr_pettan_commons_v01_licenses.rb

Instance Method Summary collapse

Instance Method Details

#attribute_extendObject



56
57
58
59
# File 'lib/pettanr_pettan_commons_v01_licenses.rb', line 56

def attribute_extend
  self.new_attribute unless @attribute_extend
  @attribute_extend ||= PettanrPettanCommonsV01Licenses::Attribute.new
end

#attribute_extend=(params) ⇒ Object



61
62
63
64
65
# File 'lib/pettanr_pettan_commons_v01_licenses.rb', line 61

def attribute_extend= params
  # load attributes
  @attribute_extend = PettanrPettanCommonsV01Licenses::Attribute.new params
  # no supply default params
end

#new_attribute(params = {}) ⇒ Object



67
68
69
70
71
# File 'lib/pettanr_pettan_commons_v01_licenses.rb', line 67

def new_attribute params = {} 
  @attribute_extend = PettanrPettanCommonsV01Licenses::Attribute.new params
  # Attribute's supply_default need operators
  # @attribute_extend.supply_default operators
end

#supply_defaultObject



52
53
54
# File 'lib/pettanr_pettan_commons_v01_licenses.rb', line 52

def supply_default 
  super
end