Class: Conversocial::Client
- Inherits:
-
Object
- Object
- Conversocial::Client
- Defined in:
- lib/conversocial/client.rb
Instance Attribute Summary collapse
-
#cache_expiry ⇒ Object
readonly
Returns the value of attribute cache_expiry.
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#logger ⇒ Object
readonly
Returns the value of attribute logger.
-
#secret ⇒ Object
readonly
Returns the value of attribute secret.
-
#version ⇒ Object
readonly
Returns the value of attribute version.
Instance Method Summary collapse
- #accounts ⇒ Object
- #authors ⇒ Object
- #channels ⇒ Object
- #conversations ⇒ Object
-
#initialize(options = {}) ⇒ Client
constructor
A new instance of Client.
-
#reports ⇒ Object
TODO: implement keyvalues support def keyvalues (@keyvalues ||= Conversocial::Resources::QueryEngines::Keyvalue.new self).clear end.
- #tags ⇒ Object
- #users ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Client
Returns a new instance of Client.
5 6 7 8 9 10 11 |
# File 'lib/conversocial/client.rb', line 5 def initialize ={} @key = [:key] @secret = [:secret] @version = [:version] @logger = [:logger] @cache_expiry = [:cache_expiry] end |
Instance Attribute Details
#cache_expiry ⇒ Object (readonly)
Returns the value of attribute cache_expiry.
3 4 5 |
# File 'lib/conversocial/client.rb', line 3 def cache_expiry @cache_expiry end |
#key ⇒ Object (readonly)
Returns the value of attribute key.
3 4 5 |
# File 'lib/conversocial/client.rb', line 3 def key @key end |
#logger ⇒ Object (readonly)
Returns the value of attribute logger.
3 4 5 |
# File 'lib/conversocial/client.rb', line 3 def logger @logger end |
#secret ⇒ Object (readonly)
Returns the value of attribute secret.
3 4 5 |
# File 'lib/conversocial/client.rb', line 3 def secret @secret end |
#version ⇒ Object (readonly)
Returns the value of attribute version.
3 4 5 |
# File 'lib/conversocial/client.rb', line 3 def version @version end |
Instance Method Details
#accounts ⇒ Object
13 14 15 |
# File 'lib/conversocial/client.rb', line 13 def accounts (@accounts ||= Conversocial::Resources::QueryEngines::Account.new self).clear end |
#authors ⇒ Object
17 18 19 |
# File 'lib/conversocial/client.rb', line 17 def (@authors ||= Conversocial::Resources::QueryEngines::Author.new self).clear end |
#channels ⇒ Object
21 22 23 |
# File 'lib/conversocial/client.rb', line 21 def channels (@channels ||= Conversocial::Resources::QueryEngines::Channel.new self).clear end |
#conversations ⇒ Object
42 43 44 |
# File 'lib/conversocial/client.rb', line 42 def conversations (@conversations ||= Conversocial::Resources::QueryEngines::Conversation.new self).clear end |
#reports ⇒ Object
TODO: implement keyvalues support def keyvalues
(@keyvalues ||= Conversocial::Resources::QueryEngines::Keyvalue.new self).clear
end
30 31 32 |
# File 'lib/conversocial/client.rb', line 30 def reports (@reports ||= Conversocial::Resources::QueryEngines::Report.new self).clear end |
#tags ⇒ Object
34 35 36 |
# File 'lib/conversocial/client.rb', line 34 def (@tags ||= Conversocial::Resources::QueryEngines::Tag.new self).clear end |
#users ⇒ Object
38 39 40 |
# File 'lib/conversocial/client.rb', line 38 def users (@users ||= Conversocial::Resources::QueryEngines::User.new self).clear end |