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)


292
293
294
295
# File 'lib/td/client/model.rb', line 292

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

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



299
300
301
# File 'lib/td/client/model.rb', line 299

def name
  @name
end

#typeObject (readonly)

Returns the value of attribute type.



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

attr_reader :name