Module: Resourced::Attributes::ClassMethods

Defined in:
lib/resourced/attributes.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#_attributes_objObject (readonly)

Returns the value of attribute _attributes_obj.



197
198
199
# File 'lib/resourced/attributes.rb', line 197

def _attributes_obj
  @_attributes_obj
end

Instance Method Details

#attributes(&block) ⇒ Object



188
189
190
191
# File 'lib/resourced/attributes.rb', line 188

def attributes(&block)
  @_attributes_obj ||= RuleSet.new
  @_attributes_obj.instance_eval(&block)
end

#body(name = nil) ⇒ Object



193
194
195
# File 'lib/resourced/attributes.rb', line 193

def body(name=nil)
  name ? @attr_body = name : @attr_body
end