Class: Dolt::View::SubmoduleUrl::HttpMountPoint
- Inherits:
-
Object
- Object
- Dolt::View::SubmoduleUrl::HttpMountPoint
- Defined in:
- lib/libdolt/view/submodule_url.rb
Instance Attribute Summary collapse
-
#host ⇒ Object
readonly
Returns the value of attribute host.
-
#protocol ⇒ Object
readonly
Returns the value of attribute protocol.
Instance Method Summary collapse
- #base_url ⇒ Object
-
#initialize(host, protocol = 'http') ⇒ HttpMountPoint
constructor
A new instance of HttpMountPoint.
Constructor Details
#initialize(host, protocol = 'http') ⇒ HttpMountPoint
Returns a new instance of HttpMountPoint.
59 60 61 62 |
# File 'lib/libdolt/view/submodule_url.rb', line 59 def initialize(host, protocol = 'http') @host = host @protocol = protocol end |
Instance Attribute Details
#host ⇒ Object (readonly)
Returns the value of attribute host.
57 58 59 |
# File 'lib/libdolt/view/submodule_url.rb', line 57 def host @host end |
#protocol ⇒ Object (readonly)
Returns the value of attribute protocol.
57 58 59 |
# File 'lib/libdolt/view/submodule_url.rb', line 57 def protocol @protocol end |
Instance Method Details
#base_url ⇒ Object
64 65 66 |
# File 'lib/libdolt/view/submodule_url.rb', line 64 def base_url "#{protocol}://#{host}/" end |