Module: LinodeAPI
- Defined in:
- lib/linodeapi.rb,
lib/linodeapi/raw.rb
Overview
Raw API wrapper, dynamically loaded from the published spec
Defined Under Namespace
Classes: Raw
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
Class Method Summary collapse
Class Method Details
.spec ⇒ Object
14 15 16 |
# File 'lib/linodeapi.rb', line 14 def spec @spec ||= { type: :group, subs: parse_spec } end |
.spec_version ⇒ Object
18 19 20 |
# File 'lib/linodeapi.rb', line 18 def spec_version @spec_version ||= raw_spec['DATA']['VERSION'].to_s end |