Class: Reflect::Field

Inherits:
Object
  • Object
show all
Defined in:
lib/reflect/field.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_typeObject

Returns the value of attribute column_type.



4
5
6
# File 'lib/reflect/field.rb', line 4

def column_type
  @column_type
end

#created_atObject

Returns the value of attribute created_at.



8
9
10
# File 'lib/reflect/field.rb', line 8

def created_at
  @created_at
end

#descriptionObject

Returns the value of attribute description.



6
7
8
# File 'lib/reflect/field.rb', line 6

def description
  @description
end

#fieldsObject

Returns the value of attribute fields.



7
8
9
# File 'lib/reflect/field.rb', line 7

def fields
  @fields
end

#nameObject

Returns the value of attribute name.



3
4
5
# File 'lib/reflect/field.rb', line 3

def name
  @name
end

#typeObject

Returns the value of attribute type.



5
6
7
# File 'lib/reflect/field.rb', line 5

def type
  @type
end

#updated_atObject

Returns the value of attribute updated_at.



9
10
11
# File 'lib/reflect/field.rb', line 9

def updated_at
  @updated_at
end