Class: FbRails::Mock::Response
- Inherits:
-
Object
- Object
- FbRails::Mock::Response
- Defined in:
- lib/fb_rails/mock.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
Instance Method Summary collapse
-
#initialize(data) ⇒ Response
constructor
A new instance of Response.
Constructor Details
#initialize(data) ⇒ Response
Returns a new instance of Response.
5 6 7 |
# File 'lib/fb_rails/mock.rb', line 5 def initialize(data) @body = data.to_json end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
4 5 6 |
# File 'lib/fb_rails/mock.rb', line 4 def body @body end |