Class: Apipony::ExampleResponse

Inherits:
Base
  • Object
show all
Defined in:
lib/apipony/example_response.rb

Overview

Display an example response to help with understanding of the API.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#bodyObject

Returns the value of attribute body.



4
5
6
# File 'lib/apipony/example_response.rb', line 4

def body
  @body
end

#headersObject

Returns the value of attribute headers.



4
5
6
# File 'lib/apipony/example_response.rb', line 4

def headers
  @headers
end