Class: Apipie::SwaggerGenerator::SwaggerTypeWithFormat

Inherits:
Object
  • Object
show all
Defined in:
lib/apipie/swagger_generator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type, str_format) ⇒ SwaggerTypeWithFormat

Returns a new instance of SwaggerTypeWithFormat.



278
279
280
281
# File 'lib/apipie/swagger_generator.rb', line 278

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

Instance Attribute Details

#str_formatObject (readonly)

Returns the value of attribute str_format.



277
278
279
# File 'lib/apipie/swagger_generator.rb', line 277

def str_format
  @str_format
end

Instance Method Details

#==(other) ⇒ Object



287
288
289
# File 'lib/apipie/swagger_generator.rb', line 287

def ==(other)
  other.to_s == self.to_s
end

#to_sObject



283
284
285
# File 'lib/apipie/swagger_generator.rb', line 283

def to_s
  @type
end