Class: Reflect::Field
- Inherits:
-
Object
- Object
- Reflect::Field
- Defined in:
- lib/reflect/field.rb
Instance Attribute Summary collapse
-
#column_type ⇒ Object
Returns the value of attribute column_type.
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#description ⇒ Object
Returns the value of attribute description.
-
#fields ⇒ Object
Returns the value of attribute fields.
-
#name ⇒ Object
Returns the value of attribute name.
-
#type ⇒ Object
Returns the value of attribute type.
-
#updated_at ⇒ Object
Returns the value of attribute updated_at.
Instance Method Summary collapse
-
#initialize(client, attrs = {}) ⇒ Field
constructor
A new instance of Field.
Constructor Details
#initialize(client, attrs = {}) ⇒ Field
Returns a new instance of Field.
11 12 13 14 15 16 17 |
# File 'lib/reflect/field.rb', line 11 def initialize(client, attrs={}) @client = client attrs.each do |k, v| self.send("#{k}=".to_s, v) end end |
Instance Attribute Details
#column_type ⇒ Object
Returns the value of attribute column_type.
4 5 6 |
# File 'lib/reflect/field.rb', line 4 def column_type @column_type end |
#created_at ⇒ Object
Returns the value of attribute created_at.
8 9 10 |
# File 'lib/reflect/field.rb', line 8 def created_at @created_at end |
#description ⇒ Object
Returns the value of attribute description.
6 7 8 |
# File 'lib/reflect/field.rb', line 6 def description @description end |
#fields ⇒ Object
Returns the value of attribute fields.
7 8 9 |
# File 'lib/reflect/field.rb', line 7 def fields @fields end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/reflect/field.rb', line 3 def name @name end |
#type ⇒ Object
Returns the value of attribute type.
5 6 7 |
# File 'lib/reflect/field.rb', line 5 def type @type end |
#updated_at ⇒ Object
Returns the value of attribute updated_at.
9 10 11 |
# File 'lib/reflect/field.rb', line 9 def updated_at @updated_at end |