Class: RubyVibe
- Inherits:
-
Object
- Object
- RubyVibe
- Includes:
- Calls
- Defined in:
- lib/ruby_vibe.rb,
lib/ruby_vibe/urls.rb,
lib/ruby_vibe/calls.rb,
lib/ruby_vibe/client.rb,
lib/ruby_vibe/version.rb,
lib/ruby_vibe/calls/info.rb,
lib/ruby_vibe/configuration.rb,
lib/ruby_vibe/calls/messaging.rb
Defined Under Namespace
Modules: Calls, URLS Classes: Client, Configuration
Constant Summary collapse
- VERSION =
'0.0.2'.freeze
Class Attribute Summary collapse
-
.config ⇒ Object
Accessor for global configuration.
Instance Attribute Summary collapse
-
#client ⇒ Object
Returns the value of attribute client.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(auth_token: nil) ⇒ RubyVibe
constructor
A new instance of RubyVibe.
Methods included from Calls::Messaging
#broadcast_message, #send_message
Methods included from Calls::Info
#get_account_data, #get_online, #get_user_details, #set_webhook
Constructor Details
Class Attribute Details
.config ⇒ Object
Accessor for global configuration.
4 5 6 |
# File 'lib/ruby_vibe/configuration.rb', line 4 def config @config end |
Instance Attribute Details
#client ⇒ Object
Returns the value of attribute client.
9 10 11 |
# File 'lib/ruby_vibe.rb', line 9 def client @client end |
Class Method Details
.configure {|config| ... } ⇒ Object
7 8 9 10 |
# File 'lib/ruby_vibe/configuration.rb', line 7 def self.configure self.config ||= Configuration.new yield(config) if block_given? end |