Class: Sistrix::Links::List
- Inherits:
-
Object
- Object
- Sistrix::Links::List
- Includes:
- Base
- Defined in:
- lib/sistrix/links/list.rb
Defined Under Namespace
Classes: Record
Instance Attribute Summary collapse
-
#credits ⇒ Object
readonly
Returns the value of attribute credits.
-
#links ⇒ Object
readonly
Returns the value of attribute links.
Instance Method Summary collapse
- #call(options = {}) ⇒ Object
-
#initialize(options = {}) ⇒ List
constructor
A new instance of List.
Methods included from Base
#base_uri, #fetch, #method_name
Constructor Details
#initialize(options = {}) ⇒ List
Returns a new instance of List.
11 12 13 14 15 16 17 18 19 20 |
# File 'lib/sistrix/links/list.rb', line 11 def initialize( = {}) @options = { 'domain' => nil, '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/links/list.rb', line 9 def credits @credits end |
#links ⇒ Object (readonly)
Returns the value of attribute links.
9 10 11 |
# File 'lib/sistrix/links/list.rb', line 9 def links @links end |