Class: Deimos::SchemaField

Inherits:
Object
  • Object
show all
Defined in:
lib/deimos/schema_backends/base.rb

Overview

Represents a field in the schema.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, type) ⇒ SchemaField

Returns a new instance of SchemaField.

Parameters:

  • name (String)
  • type (Object)


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

#nameObject

Returns the value of attribute name.



6
7
8
# File 'lib/deimos/schema_backends/base.rb', line 6

def name
  @name
end

#typeObject

Returns the value of attribute type.



6
7
8
# File 'lib/deimos/schema_backends/base.rb', line 6

def type
  @type
end