Method: Gerd::Model::GithubState.from_json

Defined in:
lib/gerd/model/model.rb

.from_json(json) ⇒ Object



11
12
13
14
15
16
17
18
19
# File 'lib/gerd/model/model.rb', line 11

def self.from_json(json)
   begin
    return Gerd::Model::GithubState.new(JSON.parse(json))
  rescue => e
    puts json
    raise Gerd::Exceptions::ValidationException.new("Couldn't parse JSON")
  end
  
end