Module: Opushon Private
- Defined in:
- lib/opushon.rb,
lib/opushon/body.rb,
lib/opushon/option.rb,
lib/opushon/request.rb,
lib/opushon/response.rb,
lib/opushon/parameter.rb,
lib/opushon/restricted_value.rb
Overview
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Namespace for the Opushon library. Representation of documentations for HTTP APIs.
Defined Under Namespace
Classes: Body, Option, Parameter, Request, Response, RestrictedValue
Class Method Summary collapse
-
.dump(opushon) ⇒ String
Dump Ruby object to a Opushon string.
-
.load(opushon_string) ⇒ Body
Load opushon in to the Ruby data structure.
Class Method Details
.dump(opushon) ⇒ String
Dump Ruby object to a Opushon string.
32 33 34 |
# File 'lib/opushon.rb', line 32 def self.dump(opushon) opushon.to_h.to_json end |