Class: BraintreeHttp::Text
- Inherits:
-
Object
- Object
- BraintreeHttp::Text
- Defined in:
- lib/braintreehttp/encoder.rb
Instance Method Summary collapse
Instance Method Details
#content_type ⇒ Object
67 68 69 |
# File 'lib/braintreehttp/encoder.rb', line 67 def content_type /^text\/.*/ end |
#decode(body) ⇒ Object
63 64 65 |
# File 'lib/braintreehttp/encoder.rb', line 63 def decode(body) body.to_s end |
#encode(request) ⇒ Object
59 60 61 |
# File 'lib/braintreehttp/encoder.rb', line 59 def encode(request) request.body.to_s end |