Module: LinodeAPI
- Defined in:
- lib/linodeapi.rb,
lib/linodeapi/raw.rb,
lib/linodeapi/errors.rb,
lib/linodeapi/helpers.rb,
lib/linodeapi/version.rb,
lib/linodeapi/retryable.rb
Overview
Raw API wrapper, dynamically loaded from the published spec
Defined Under Namespace
Modules: Helpers Classes: APIError, HTTPError, Raw, RetriedHTTPError, Retryable, RetryableHTTPError
Constant Summary collapse
- DEFAULT_ENDPOINT =
Default API endpoint
'https://api.linode.com/'.freeze
- SPEC_URL =
'https://api.linode.com/?api_action=api.spec'.freeze
- VALIDATION_METHODS =
{ boolean: proc { |e| !!e }, # rubocop:disable Style/DoubleNegation numeric: proc { |e| Integer(e) }, string: proc(&:to_s) }.freeze
- VERSION =
'2.0.3'.freeze
Class Method Summary collapse
Class Method Details
.spec ⇒ Object
15 16 17 |
# File 'lib/linodeapi.rb', line 15 def spec @spec ||= { type: :group, subs: parse_spec } end |
.spec_version ⇒ Object
19 20 21 |
# File 'lib/linodeapi.rb', line 19 def spec_version @spec_version ||= raw_spec['DATA']['VERSION'].to_s end |