Class: Simp::Metadata::FakeURI
- Inherits:
-
Object
- Object
- Simp::Metadata::FakeURI
- Defined in:
- lib/simp/metadata/fake_uri.rb
Instance Attribute Summary collapse
-
#host ⇒ Object
Returns the value of attribute host.
-
#path ⇒ Object
Returns the value of attribute path.
-
#port ⇒ Object
Returns the value of attribute port.
-
#scheme ⇒ Object
Returns the value of attribute scheme.
-
#user ⇒ Object
Returns the value of attribute user.
Instance Method Summary collapse
-
#initialize(uri) ⇒ FakeURI
constructor
A new instance of FakeURI.
- #to_s ⇒ Object
Constructor Details
#initialize(uri) ⇒ FakeURI
Returns a new instance of FakeURI.
12 13 14 |
# File 'lib/simp/metadata/fake_uri.rb', line 12 def initialize(uri) @uri = uri end |
Instance Attribute Details
#host ⇒ Object
Returns the value of attribute host.
7 8 9 |
# File 'lib/simp/metadata/fake_uri.rb', line 7 def host @host end |
#path ⇒ Object
Returns the value of attribute path.
9 10 11 |
# File 'lib/simp/metadata/fake_uri.rb', line 9 def path @path end |
#port ⇒ Object
Returns the value of attribute port.
8 9 10 |
# File 'lib/simp/metadata/fake_uri.rb', line 8 def port @port end |
#scheme ⇒ Object
Returns the value of attribute scheme.
6 7 8 |
# File 'lib/simp/metadata/fake_uri.rb', line 6 def scheme @scheme end |
#user ⇒ Object
Returns the value of attribute user.
10 11 12 |
# File 'lib/simp/metadata/fake_uri.rb', line 10 def user @user end |
Instance Method Details
#to_s ⇒ Object
16 17 18 |
# File 'lib/simp/metadata/fake_uri.rb', line 16 def to_s @uri end |