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.



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

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.



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

def description
  @description
end

#nameObject

Returns the value of attribute name.



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

def name
  @name
end

#summaryObject

Returns the value of attribute summary.



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

def summary
  @summary
end

#typeObject

Returns the value of attribute type.



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

def type
  @type
end