class Digicert::Base

Attributes

attributes[R]
query_params[R]
resource_id[R]

Public Class Methods

new(attributes = {}) click to toggle source
# File lib/digicert/base.rb, line 6
def initialize(attributes = {})
  @attributes = attributes
  extract_base_attribute_ids

  extract_local_attribute_ids
end

Private Instance Methods

extract_base_attribute_ids() click to toggle source
# File lib/digicert/base.rb, line 26
def extract_base_attribute_ids
  @query_params = attributes.delete(:params)
  @resource_id = attributes.delete(:resource_id)
end
extract_local_attribute_ids() click to toggle source

Override this method to extract ids that are specific to each of the specific sub classes, for example: if you want to extract `order_id` from the attributes

@order_id = attributes.delete(:order_id)

# File lib/digicert/base.rb, line 23
def extract_local_attribute_ids
end
request_klass() click to toggle source
# File lib/digicert/base.rb, line 31
def request_klass
  Digicert::Request
end