Class: Travis::Config::Heroku::Url::Base

Inherits:
Struct
  • Object
show all
Defined in:
lib/travis/config/heroku/url.rb

Direct Known Subclasses

Amqp

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#databaseObject

Returns the value of attribute database

Returns:

  • (Object)

    the current value of database



7
8
9
# File 'lib/travis/config/heroku/url.rb', line 7

def database
  @database
end

#hostObject

Returns the value of attribute host

Returns:

  • (Object)

    the current value of host



7
8
9
# File 'lib/travis/config/heroku/url.rb', line 7

def host
  @host
end

#passwordObject

Returns the value of attribute password

Returns:

  • (Object)

    the current value of password



7
8
9
# File 'lib/travis/config/heroku/url.rb', line 7

def password
  @password
end

#portObject

Returns the value of attribute port

Returns:

  • (Object)

    the current value of port



7
8
9
# File 'lib/travis/config/heroku/url.rb', line 7

def port
  @port
end

#usernameObject

Returns the value of attribute username

Returns:

  • (Object)

    the current value of username



7
8
9
# File 'lib/travis/config/heroku/url.rb', line 7

def username
  @username
end

Instance Method Details

#to_hObject



8
9
10
# File 'lib/travis/config/heroku/url.rb', line 8

def to_h
  Hash[each_pair.to_a]
end