Class: StructField

Inherits:
Object show all
Defined in:
lib/code_generator/api_converter.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params) ⇒ StructField

Returns a new instance of StructField.



363
364
365
366
367
368
369
# File 'lib/code_generator/api_converter.rb', line 363

def initialize(params)
  params.each do |k, v|
    if self.respond_to?(k.to_sym)
      instance_variable_set("@#{k}".to_sym, v)
    end
  end
end

Instance Attribute Details

#descriptionObject

Returns the value of attribute description.



361
362
363
# File 'lib/code_generator/api_converter.rb', line 361

def description
  @description
end

#nameObject

Returns the value of attribute name.



358
359
360
# File 'lib/code_generator/api_converter.rb', line 358

def name
  @name
end

#summaryObject

Returns the value of attribute summary.



360
361
362
# File 'lib/code_generator/api_converter.rb', line 360

def summary
  @summary
end

#typeObject

Returns the value of attribute type.



359
360
361
# File 'lib/code_generator/api_converter.rb', line 359

def type
  @type
end