Class: Mock::Bandwidth::Response

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#bodyObject

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