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