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.

Parameters:

  • name (String)
  • type (String)


278
279
280
281
# File 'lib/td/client/model.rb', line 278

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

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



285
286
287
# File 'lib/td/client/model.rb', line 285

def name
  @name
end

#typeObject (readonly)

Returns the value of attribute type.



285
# File 'lib/td/client/model.rb', line 285

attr_reader :name