Class: Moonrope::StructureAttribute

Inherits:
Object
  • Object
show all
Defined in:
lib/moonrope/structure_attribute.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type, name, description) ⇒ StructureAttribute

Returns a new instance of StructureAttribute.



15
16
17
18
19
20
21
# File 'lib/moonrope/structure_attribute.rb', line 15

def initialize(type, name, description)
  @type = type
  @name = name
  @description = description
  @groups = []
  @conditions = []
end

Instance Attribute Details

#conditionsObject

Returns the value of attribute conditions.



6
7
8
# File 'lib/moonrope/structure_attribute.rb', line 6

def conditions
  @conditions
end

#descriptionObject

Returns the value of attribute description.



8
9
10
# File 'lib/moonrope/structure_attribute.rb', line 8

def description
  @description
end

#exampleObject

Returns the value of attribute example.



13
14
15
# File 'lib/moonrope/structure_attribute.rb', line 13

def example
  @example
end

#groupsObject

Returns the value of attribute groups.



5
6
7
# File 'lib/moonrope/structure_attribute.rb', line 5

def groups
  @groups
end

#nameObject

Returns the value of attribute name.



4
5
6
# File 'lib/moonrope/structure_attribute.rb', line 4

def name
  @name
end

#source_attributeObject

Returns the value of attribute source_attribute.



7
8
9
# File 'lib/moonrope/structure_attribute.rb', line 7

def source_attribute
  @source_attribute
end

#structureObject

Returns the value of attribute structure.



10
11
12
# File 'lib/moonrope/structure_attribute.rb', line 10

def structure
  @structure
end

#structure_optsObject

Returns the value of attribute structure_opts.



11
12
13
# File 'lib/moonrope/structure_attribute.rb', line 11

def structure_opts
  @structure_opts
end

#valueObject

Returns the value of attribute value.



12
13
14
# File 'lib/moonrope/structure_attribute.rb', line 12

def value
  @value
end

#value_typeObject

Returns the value of attribute value_type.



9
10
11
# File 'lib/moonrope/structure_attribute.rb', line 9

def value_type
  @value_type
end