class DigitalOcean::Resource::Base
Public Class Methods
new(connection, options = {})
click to toggle source
# File lib/digital_ocean/resource/base.rb, line 4 def initialize(connection, options = {}) @connection = connection end
Private Instance Methods
apply_default_params(query)
click to toggle source
# File lib/digital_ocean/resource/base.rb, line 18 def apply_default_params(query) end
apply_params(query, opts)
click to toggle source
# File lib/digital_ocean/resource/base.rb, line 10 def apply_params(query, opts) apply_default_params(query) opts.each_pair do |key, value| query.params[key] = value end end