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.



270
271
272
273
# File 'lib/apipie/swagger_generator.rb', line 270

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.



269
270
271
# File 'lib/apipie/swagger_generator.rb', line 269

def str_format
  @str_format
end

Instance Method Details

#==(other) ⇒ Object



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

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

#to_sObject



275
276
277
# File 'lib/apipie/swagger_generator.rb', line 275

def to_s
  @type
end