Class: Puree::Extractor::Dataset

Inherits:
Resource
  • Object
show all
Defined in:
lib/puree/extractor/dataset.rb

Overview

Dataset extractor.

Instance Method Summary collapse

Constructor Details

#initialize(config) ⇒ Dataset

Returns a new instance of Dataset.

Options Hash (config):

  • :url (String)

    URL of the Pure host

  • :username (String)

    Username of the Pure host account

  • :password (String)

    Password of the Pure host account

  • :api_key (String)

    API key of the Pure host account



10
11
12
# File 'lib/puree/extractor/dataset.rb', line 10

def initialize(config)
  super
end

Instance Method Details

#find(id) ⇒ Object

Parameters:

  • id (String)


15
16
17
18
19
# File 'lib/puree/extractor/dataset.rb', line 15

def find(id)
  find_and_extract id: id,
                   api_resource_type: :dataset,
                   xml_extractor_resource_type: :dataset
end