Class: Schema::Attribute
- Inherits:
-
Object
- Object
- Schema::Attribute
- Defined in:
- lib/schema/schema/attribute.rb
Defined Under Namespace
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#strict ⇒ Object
readonly
Returns the value of attribute strict.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(name, type, strict) ⇒ Attribute
constructor
A new instance of Attribute.
Constructor Details
#initialize(name, type, strict) ⇒ Attribute
Returns a new instance of Attribute.
10 11 12 13 14 |
# File 'lib/schema/schema/attribute.rb', line 10 def initialize(name, type, strict) @name = name @type = type @strict = strict end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
6 7 8 |
# File 'lib/schema/schema/attribute.rb', line 6 def name @name end |
#strict ⇒ Object (readonly)
Returns the value of attribute strict.
8 9 10 |
# File 'lib/schema/schema/attribute.rb', line 8 def strict @strict end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
7 8 9 |
# File 'lib/schema/schema/attribute.rb', line 7 def type @type end |