Class: ApiDef::Response
Overview
ApiDef::Response means a response api returned
Instance Method Summary collapse
Methods inherited from Element
Methods included from Support::AttrUnoArray
Methods included from Support::AttrArray
Methods included from Support::AttrUno
Constructor Details
This class inherits a constructor from ApiDef::Element
Instance Method Details
#body(&block) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/api_def/response.rb', line 6 def body(&block) if block @body = Jbuilder.new(&block).attributes! else @body end end |