Class: CredHubble::Resources::Info

Inherits:
ImmutableResource show all
Defined in:
lib/cred_hubble/resources/info.rb

Class Method Summary collapse

Methods inherited from RestResource

#to_json

Class Method Details

.from_json(raw_json) ⇒ Object



18
19
20
21
22
23
24
25
26
# File 'lib/cred_hubble/resources/info.rb', line 18

def self.from_json(raw_json)
  parsed_json = parse_json(raw_json)

  if parsed_json['auth-server']
    parsed_json[:auth_server] = parsed_json.delete('auth-server')
  end

  new(parsed_json)
end