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.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(name, type) ⇒ Attribute
constructor
A new instance of Attribute.
Constructor Details
#initialize(name, type) ⇒ Attribute
Returns a new instance of Attribute.
9 10 11 12 |
# File 'lib/schema/schema/attribute.rb', line 9 def initialize(name, type) @name = name @type = type 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 |
#type ⇒ Object (readonly)
Returns the value of attribute type.
7 8 9 |
# File 'lib/schema/schema/attribute.rb', line 7 def type @type end |