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.



204
205
206
207
# File 'lib/td/client/model.rb', line 204

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

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



208
209
210
# File 'lib/td/client/model.rb', line 208

def name
  @name
end

#typeObject (readonly)

Returns the value of attribute type.



209
210
211
# File 'lib/td/client/model.rb', line 209

def type
  @type
end