Class: TreasureData::Schema::Field

Inherits:
Object
  • Object
show all
Defined in:
lib/td/client/model.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, type) ⇒ Field

Returns a new instance of Field.



175
176
177
178
# File 'lib/td/client/model.rb', line 175

def initialize(name, type)
  @name = name
  @type = type
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



179
180
181
# File 'lib/td/client/model.rb', line 179

def name
  @name
end

#typeObject (readonly)

Returns the value of attribute type.



180
181
182
# File 'lib/td/client/model.rb', line 180

def type
  @type
end