Class: BraintreeHttp::Text

Inherits:
Object
  • Object
show all
Defined in:
lib/braintreehttp/encoder.rb

Instance Method Summary collapse

Instance Method Details

#content_typeObject



70
71
72
# File 'lib/braintreehttp/encoder.rb', line 70

def content_type
  /^text\/.*/
end

#decode(body) ⇒ Object



66
67
68
# File 'lib/braintreehttp/encoder.rb', line 66

def decode(body)
  body.to_s
end

#encode(body) ⇒ Object



62
63
64
# File 'lib/braintreehttp/encoder.rb', line 62

def encode(body)
  body.to_s
end