Class: WeThePeople::Config::MotionJSONWrapper

Inherits:
Object
  • Object
show all
Defined in:
lib/we_the_people/config.rb

Class Method Summary collapse

Class Method Details

.parse(string_data) ⇒ Object



30
31
32
33
34
# File 'lib/we_the_people/config.rb', line 30

def self.parse(string_data)
  json_data = string_data.dataUsingEncoding(NSUTF8StringEncoding)
  e = Pointer.new(:object)
  NSJSONSerialization.JSONObjectWithData(json_data, options:0, error: e).mutableCopy
end