Class: FbRails::Mock::Response

Inherits:
Object
  • Object
show all
Defined in:
lib/fb_rails/mock.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#bodyObject (readonly)

Returns the value of attribute body.



4
5
6
# File 'lib/fb_rails/mock.rb', line 4

def body
  @body
end