Method: ProcessOut::Device#to_json
- Defined in:
- lib/processout/device.rb
#to_json(options) ⇒ Object
Overrides the JSON marshaller to only send the fields we want
108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 |
# File 'lib/processout/device.rb', line 108 def to_json() { "request_origin": self.request_origin, "id": self.id, "channel": self.channel, "ip_address": self.ip_address, "user_agent": self.user_agent, "header_accept": self.header_accept, "header_referer": self.header_referer, "app_color_depth": self.app_color_depth, "app_java_enabled": self.app_java_enabled, "app_language": self.app_language, "app_screen_height": self.app_screen_height, "app_screen_width": self.app_screen_width, "app_timezone_offset": self.app_timezone_offset, }.to_json end |