Class: SchemaReader::Attribute
- Inherits:
-
Object
- Object
- SchemaReader::Attribute
- Defined in:
- lib/schema_reader.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(type, name) ⇒ Attribute
constructor
A new instance of Attribute.
Constructor Details
#initialize(type, name) ⇒ Attribute
Returns a new instance of Attribute.
74 75 76 |
# File 'lib/schema_reader.rb', line 74 def initialize(type, name) @name, @type = name, type end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
72 73 74 |
# File 'lib/schema_reader.rb', line 72 def name @name end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
72 73 74 |
# File 'lib/schema_reader.rb', line 72 def type @type end |