Class: Apipony::ExampleResponse
- Defined in:
- lib/apipony/example_response.rb
Overview
Display an example response to help with understanding of the API.
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#headers ⇒ Object
Returns the value of attribute headers.
Instance Method Summary collapse
-
#initialize(&block) ⇒ ExampleResponse
constructor
A new instance of ExampleResponse.
Constructor Details
#initialize(&block) ⇒ ExampleResponse
Returns a new instance of ExampleResponse.
5 6 7 |
# File 'lib/apipony/example_response.rb', line 5 def initialize(&block) instance_eval(&block) if block_given? end |
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
4 5 6 |
# File 'lib/apipony/example_response.rb', line 4 def body @body end |
#headers ⇒ Object
Returns the value of attribute headers.
4 5 6 |
# File 'lib/apipony/example_response.rb', line 4 def headers @headers end |