Class: MobileIntent::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/mobile_intent/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

Returns a new instance of Config.



5
6
7
# File 'lib/mobile_intent/config.rb', line 5

def initialize
  @apps = {}
end

Instance Attribute Details

#appsObject (readonly)

Returns the value of attribute apps.



3
4
5
# File 'lib/mobile_intent/config.rb', line 3

def apps
  @apps
end

Instance Method Details

#has?(name) ⇒ Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/mobile_intent/config.rb', line 9

def has?(name)
  @apps.has_key?(name)
end