Class: Apipie::SwaggerGenerator::SwaggerTypeWithFormat
- Inherits:
-
Object
- Object
- Apipie::SwaggerGenerator::SwaggerTypeWithFormat
- Defined in:
- lib/apipie/swagger_generator.rb
Instance Attribute Summary collapse
-
#str_format ⇒ Object
readonly
Returns the value of attribute str_format.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(type, str_format) ⇒ SwaggerTypeWithFormat
constructor
A new instance of SwaggerTypeWithFormat.
- #to_s ⇒ Object
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_format ⇒ Object (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_s ⇒ Object
275 276 277 |
# File 'lib/apipie/swagger_generator.rb', line 275 def to_s @type end |