Class: VkontakteAuthentication::ProfileLoader
- Inherits:
-
Object
- Object
- VkontakteAuthentication::ProfileLoader
- Defined in:
- lib/profile_loader.rb
Instance Method Summary collapse
-
#initialize ⇒ ProfileLoader
constructor
A new instance of ProfileLoader.
- #param(key) ⇒ Object
- #vkontakte_yml_defined? ⇒ Boolean
Constructor Details
#initialize ⇒ ProfileLoader
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
12 13 14 |
# File 'lib/profile_loader.rb', line 12 def vkontakte_yml_defined? vkontakte_file && File.exist?(vkontakte_file) end |