Module: SetAttributes::Controls::Object

Defined in:
lib/set_attributes/controls/object.rb

Defined Under Namespace

Modules: MissingAttribute, New, Transform Classes: Example

Class Method Summary collapse

Class Method Details

.exampleObject



4
5
6
7
8
9
10
11
12
# File 'lib/set_attributes/controls/object.rb', line 4

def self.example
  example = Example.new

  example.some_attribute = Attribute.some_attribute
  example.some_other_attribute = Attribute.some_other_attribute
  example.yet_another_attribute = Attribute.yet_another_attribute

  example
end