Class: Social::Network

Inherits:
Object
  • Object
show all
Defined in:
lib/social/network.rb,
lib/social/network/ok.rb,
lib/social/network/vk.rb,
lib/social/network/stub.rb

Defined Under Namespace

Modules: Graph Classes: Base, Ok, Stub, Vk

Class Method Summary collapse

Class Method Details

.currentSocial::Network::base

Возвращает объект текущей соцсети после инициализации Social::Env

Returns:

  • (Social::Network::base)

7
8
9
# File 'lib/social/network.rb', line 7

def self.current
  ::Social::Network(Social::Env.type) if Env.inited?
end