Class: Deimos::SchemaField
- Inherits:
-
Object
- Object
- Deimos::SchemaField
- Defined in:
- lib/deimos/schema_backends/base.rb
Overview
Represents a field in the schema.
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(name, type) ⇒ SchemaField
constructor
A new instance of SchemaField.
Constructor Details
#initialize(name, type) ⇒ SchemaField
Returns a new instance of SchemaField.
10 11 12 13 |
# File 'lib/deimos/schema_backends/base.rb', line 10 def initialize(name, type) @name = name @type = type end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
6 7 8 |
# File 'lib/deimos/schema_backends/base.rb', line 6 def name @name end |
#type ⇒ Object
Returns the value of attribute type.
6 7 8 |
# File 'lib/deimos/schema_backends/base.rb', line 6 def type @type end |