Class: Mock::Bandwidth::Response
- Inherits:
-
Object
- Object
- Mock::Bandwidth::Response
- Defined in:
- lib/mock/bandwidth/response.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
Class Method Summary collapse
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
6 7 8 |
# File 'lib/mock/bandwidth/response.rb', line 6 def body @body end |
Class Method Details
.call(body, request) ⇒ Object
8 9 10 11 |
# File 'lib/mock/bandwidth/response.rb', line 8 def self.call(body, request) body = '{}' if !body || body.empty? @body = Mock::Bandwidth::Decorator.call(body, request) end |