Class: Simp::Metadata::FakeURI

Inherits:
Object
  • Object
show all
Defined in:
lib/simp/metadata/fake_uri.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#hostObject

Returns the value of attribute host.



7
8
9
# File 'lib/simp/metadata/fake_uri.rb', line 7

def host
  @host
end

#pathObject

Returns the value of attribute path.



9
10
11
# File 'lib/simp/metadata/fake_uri.rb', line 9

def path
  @path
end

#portObject

Returns the value of attribute port.



8
9
10
# File 'lib/simp/metadata/fake_uri.rb', line 8

def port
  @port
end

#schemeObject

Returns the value of attribute scheme.



6
7
8
# File 'lib/simp/metadata/fake_uri.rb', line 6

def scheme
  @scheme
end

#userObject

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_sObject



16
17
18
# File 'lib/simp/metadata/fake_uri.rb', line 16

def to_s
  @uri
end