Class: Manifique::Agent
- Inherits:
-
Object
- Object
- Manifique::Agent
- Defined in:
- lib/manifique/agent.rb
Instance Method Summary collapse
- #fetch_metadata ⇒ Object
-
#initialize(options = {}) ⇒ Agent
constructor
A new instance of Agent.
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(={}) = if url_valid?([:url]) @url = [:url] else raise "No valid URL specified" end end |
Instance Method Details
#fetch_metadata ⇒ Object
17 18 19 20 |
# File 'lib/manifique/agent.rb', line 17 def web_client = WebClient.new(url: @url) web_client. end |