Class: VkontakteAuthentication::ProfileLoader

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

Instance Method Summary collapse

Constructor Details

#initializeProfileLoader

Returns a new instance of ProfileLoader.



8
9
10
# File 'lib/profile_loader.rb', line 8

def initialize
  @vkontakte_yml = nil
end

Instance Method Details

#param(key) ⇒ Object



16
17
18
# File 'lib/profile_loader.rb', line 16

def param(key)
  vkontakte_yml[key.to_s]
end

#vkontakte_yml_defined?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/profile_loader.rb', line 12

def vkontakte_yml_defined?
    vkontakte_file && File.exist?(vkontakte_file)
end