Class: CredHubble::Resources::RestResource

Inherits:
Object
  • Object
show all
Defined in:
lib/cred_hubble/resources/rest_resource.rb

Direct Known Subclasses

CredentialFactory, ImmutableResource, Resource

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.from_json(json) ⇒ Object



10
11
12
# File 'lib/cred_hubble/resources/rest_resource.rb', line 10

def self.from_json(json)
  new(parse_json(json))
end

Instance Method Details

#to_json(options = {}) ⇒ Object



14
15
16
# File 'lib/cred_hubble/resources/rest_resource.rb', line 14

def to_json(options = {})
  attributes.to_json(options)
end