Class: TypeAlias

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params) ⇒ TypeAlias

Returns a new instance of TypeAlias.



301
302
303
304
305
306
307
# File 'lib/code_generator/api_converter.rb', line 301

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.



299
300
301
# File 'lib/code_generator/api_converter.rb', line 299

def description
  @description
end

#nameObject

Returns the value of attribute name.



296
297
298
# File 'lib/code_generator/api_converter.rb', line 296

def name
  @name
end

#summaryObject

Returns the value of attribute summary.



298
299
300
# File 'lib/code_generator/api_converter.rb', line 298

def summary
  @summary
end

#typeObject

Returns the value of attribute type.



297
298
299
# File 'lib/code_generator/api_converter.rb', line 297

def type
  @type
end