Module: Backline::Model::Attributes

Extended by:
ActiveSupport::Concern
Included in:
Backline::Model
Defined in:
lib/backline/model/attributes.rb,
lib/backline/model/attributes/attribute.rb

Defined Under Namespace

Modules: ClassMethods Classes: Attribute

Instance Method Summary collapse

Instance Method Details

#attributesObject



61
62
63
# File 'lib/backline/model/attributes.rb', line 61

def attributes
  @attributes ||= {}
end

#read_attribute(name) ⇒ Object



53
54
55
# File 'lib/backline/model/attributes.rb', line 53

def read_attribute(name)
  attributes[name.to_s]
end

#write_attribute(name, value) ⇒ Object



57
58
59
# File 'lib/backline/model/attributes.rb', line 57

def write_attribute(name, value)
  attributes[name.to_s] = value
end