class Apiotics::Parse
Public Class Methods
config(string)
click to toggle source
# File lib/apiotics/parse.rb, line 21 def self.config(string) return_json = Hash.new begin return_json = JSON.parse(string) rescue return_json = { "error": "message could not be parsed" } puts return_json end return_json end
message(string)
click to toggle source
# File lib/apiotics/parse.rb, line 8 def self.message(string) return_json = Hash.new begin return_json = JSON.parse(string) rescue return_json = { "error": "message could not be parsed" } puts return_json end return_json end
portal(string)
click to toggle source
# File lib/apiotics/parse.rb, line 34 def self.portal(string) return_json = Hash.new begin return_json = JSON.parse(string) rescue return_json = { "error": "message could not be parsed" } puts return_json end return_json end