Class: Infrataster::Resources::CapybaraResource

Inherits:
BaseResource
  • Object
show all
Defined in:
lib/infrataster/resources/capybara_resource.rb

Constant Summary collapse

Error =
Class.new(StandardError)

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from BaseResource

#context_class, #name

Constructor Details

#initialize(url) ⇒ CapybaraResource

Returns a new instance of CapybaraResource.



11
12
13
# File 'lib/infrataster/resources/capybara_resource.rb', line 11

def initialize(url)
  @uri = URI.parse(url)
end

Instance Attribute Details

#uriObject (readonly)

Returns the value of attribute uri.



9
10
11
# File 'lib/infrataster/resources/capybara_resource.rb', line 9

def uri
  @uri
end

Instance Method Details

#to_sObject



15
16
17
# File 'lib/infrataster/resources/capybara_resource.rb', line 15

def to_s
  "capybara '#{@uri}'"
end