Class: Module

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params) ⇒ Module

Returns a new instance of Module.



284
285
286
287
288
289
290
291
# File 'lib/code_generator/api_converter.rb', line 284

def initialize(params)
  @types_hash = {}
  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

#aliasObject

Returns the value of attribute alias.



276
277
278
# File 'lib/code_generator/api_converter.rb', line 276

def alias
  @alias
end

#descriptionObject

Returns the value of attribute description.



275
276
277
# File 'lib/code_generator/api_converter.rb', line 275

def description
  @description
end

#enumsObject

Returns the value of attribute enums.



277
278
279
# File 'lib/code_generator/api_converter.rb', line 277

def enums
  @enums
end

#functionsObject

Returns the value of attribute functions.



280
281
282
# File 'lib/code_generator/api_converter.rb', line 280

def functions
  @functions
end

#nameObject

Returns the value of attribute name.



273
274
275
# File 'lib/code_generator/api_converter.rb', line 273

def name
  @name
end

#summaryObject

Returns the value of attribute summary.



274
275
276
# File 'lib/code_generator/api_converter.rb', line 274

def summary
  @summary
end

#typesObject

Returns the value of attribute types.



278
279
280
# File 'lib/code_generator/api_converter.rb', line 278

def types
  @types
end

#types_hashObject

Returns the value of attribute types_hash.



279
280
281
# File 'lib/code_generator/api_converter.rb', line 279

def types_hash
  @types_hash
end