Class: LinodeAPI::Retryable

Inherits:
Raw
  • Object
show all
Defined in:
lib/linodeapi/retryable.rb

Overview

A wrapper for the Raw API that can retry retryable errors

Instance Method Summary collapse

Methods inherited from Raw

#apikey, #endpoint, #names, #respond_to_missing?, #spec, #to_s

Methods included from Helpers

#clean, #create_http_error, #error_check, #parse, #validate

Constructor Details

#initialize(params = {}) ⇒ Retryable

Returns a new instance of Retryable.



5
6
7
8
9
# File 'lib/linodeapi/retryable.rb', line 5

def initialize(params = {})
  super
  @options[:max_retries] ||= 3
  @options[:max_delay] ||= 60
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class LinodeAPI::Raw