Module: ActiveSwagger::DSL
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/active_swagger/dsl.rb
Constant Summary collapse
- Error =
Class.new(StandardError)
Instance Method Summary collapse
Instance Method Details
#swagger_attributes ⇒ Object
9 10 11 12 13 14 15 16 |
# File 'lib/active_swagger/dsl.rb', line 9 def swagger_attributes output = {} self.class.swagger_properties.each_pair do |key, value| output[key] = send(key.to_sym) output[key] = output[key].to_s if value[:type] == :string end output end |