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.
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_format ⇒ Object (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_s ⇒ Object
283 284 285 |
# File 'lib/apipie/swagger_generator.rb', line 283 def to_s @type end |