Class: MicroBunny::Settings

Inherits:
Object
  • Object
show all
Defined in:
lib/microbunny/settings.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#consumer_appObject

Returns the value of attribute consumer_app.



3
4
5
# File 'lib/microbunny/settings.rb', line 3

def consumer_app
  @consumer_app
end

#hostObject

Returns the value of attribute host.



3
4
5
# File 'lib/microbunny/settings.rb', line 3

def host
  @host
end

#passwordObject

Returns the value of attribute password.



3
4
5
# File 'lib/microbunny/settings.rb', line 3

def password
  @password
end

#usernameObject

Returns the value of attribute username.



3
4
5
# File 'lib/microbunny/settings.rb', line 3

def username
  @username
end

#vhostObject

Returns the value of attribute vhost.



3
4
5
# File 'lib/microbunny/settings.rb', line 3

def vhost
  @vhost
end

Instance Method Details

#complete?Boolean

Returns:

  • (Boolean)


5
6
7
# File 'lib/microbunny/settings.rb', line 5

def complete?
  @complete ||= connection && consumer_app
end