Class: Travis::Config::Heroku::Url::Base
- Inherits:
-
Struct
- Object
- Struct
- Travis::Config::Heroku::Url::Base
- Defined in:
- lib/travis/config/heroku/url.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#database ⇒ Object
Returns the value of attribute database.
-
#host ⇒ Object
Returns the value of attribute host.
-
#password ⇒ Object
Returns the value of attribute password.
-
#port ⇒ Object
Returns the value of attribute port.
-
#username ⇒ Object
Returns the value of attribute username.
Instance Method Summary collapse
Instance Attribute Details
#database ⇒ Object
Returns the value of attribute database
7 8 9 |
# File 'lib/travis/config/heroku/url.rb', line 7 def database @database end |
#host ⇒ Object
Returns the value of attribute host
7 8 9 |
# File 'lib/travis/config/heroku/url.rb', line 7 def host @host end |
#password ⇒ Object
Returns the value of attribute password
7 8 9 |
# File 'lib/travis/config/heroku/url.rb', line 7 def password @password end |
#port ⇒ Object
Returns the value of attribute port
7 8 9 |
# File 'lib/travis/config/heroku/url.rb', line 7 def port @port end |
#username ⇒ Object
Returns the value of attribute username
7 8 9 |
# File 'lib/travis/config/heroku/url.rb', line 7 def username @username end |
Instance Method Details
#to_h ⇒ Object
8 9 10 |
# File 'lib/travis/config/heroku/url.rb', line 8 def to_h Hash[each_pair.to_a] end |