Class: Infrataster::Resources::CapybaraResource
- Inherits:
-
BaseResource
- Object
- BaseResource
- Infrataster::Resources::CapybaraResource
- Defined in:
- lib/infrataster/resources/capybara_resource.rb
Constant Summary collapse
- Error =
Class.new(StandardError)
Instance Attribute Summary collapse
-
#uri ⇒ Object
readonly
Returns the value of attribute uri.
Instance Method Summary collapse
-
#initialize(url) ⇒ CapybaraResource
constructor
A new instance of CapybaraResource.
- #to_s ⇒ Object
Methods inherited from BaseResource
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
#uri ⇒ Object (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_s ⇒ Object
15 16 17 |
# File 'lib/infrataster/resources/capybara_resource.rb', line 15 def to_s "capybara '#{@uri}'" end |