Class: Manifique::Agent

Inherits:
Object
  • Object
show all
Defined in:
lib/manifique/agent.rb

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Agent

Returns a new instance of Agent.



7
8
9
10
11
12
13
14
15
# File 'lib/manifique/agent.rb', line 7

def initialize(options={})
  @options = options

  if url_valid?(options[:url])
    @url = options[:url]
  else
    raise "No valid URL specified"
  end
end

Instance Method Details

#fetch_metadataObject



17
18
19
20
# File 'lib/manifique/agent.rb', line 17

def 
  web_client = WebClient.new(url: @url)
  web_client.
end