Module: Schema::Controls::DataStructure

Defined in:
lib/schema/controls/data_structure.rb

Defined Under Namespace

Modules: ConfigureDependencies, ExtraAttributes, ReadAndWrite, TransformReadFail Classes: Example

Class Method Summary collapse

Class Method Details

.ancestorsObject



14
15
16
# File 'lib/schema/controls/data_structure.rb', line 14

def self.ancestors
  example.class.ancestors
end

.attributesObject



18
19
20
# File 'lib/schema/controls/data_structure.rb', line 18

def self.attributes
  example.attributes
end

.exampleObject



4
5
6
7
8
# File 'lib/schema/controls/data_structure.rb', line 4

def self.example
  example = Example.new
  example.some_attribute = some_attribute
  example
end

.hashObject



22
23
24
25
26
# File 'lib/schema/controls/data_structure.rb', line 22

def self.hash
  {
    some_attribute: some_attribute
  }
end

.some_attributeObject



10
11
12
# File 'lib/schema/controls/data_structure.rb', line 10

def self.some_attribute
  Attribute::Value.some_attribute
end