Class: Sistrix::Domain::Social::Latest
- Inherits:
-
Object
- Object
- Sistrix::Domain::Social::Latest
- Includes:
- Base
- Defined in:
- lib/sistrix/domain/social/latest.rb
Defined Under Namespace
Classes: Record
Instance Attribute Summary collapse
-
#credits ⇒ Object
readonly
Returns the value of attribute credits.
-
#urls ⇒ Object
readonly
Returns the value of attribute urls.
Instance Method Summary collapse
- #call(options = {}) ⇒ Object
-
#initialize(options = {}) ⇒ Latest
constructor
A new instance of Latest.
Methods included from Base
#base_uri, #fetch, #method_name
Constructor Details
#initialize(options = {}) ⇒ Latest
Returns a new instance of Latest.
11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/sistrix/domain/social/latest.rb', line 11 def initialize( = {}) @options = { 'domain' => nil, 'network' => nil, 'num' => 10, 'api_key' => Sistrix.config.api_key, }.merge() if Sistrix.config.proxy RestClient.proxy = Sistrix.config.proxy end end |
Instance Attribute Details
#credits ⇒ Object (readonly)
Returns the value of attribute credits.
9 10 11 |
# File 'lib/sistrix/domain/social/latest.rb', line 9 def credits @credits end |
#urls ⇒ Object (readonly)
Returns the value of attribute urls.
9 10 11 |
# File 'lib/sistrix/domain/social/latest.rb', line 9 def urls @urls end |