class Sistrix::Domain::Sichtbarkeitsindex
Attributes
credits[R]
sichtbarkeitsindex[R]
Public Class Methods
new(options = {})
click to toggle source
# File lib/sistrix/domain/sichtbarkeitsindex.rb, line 10 def initialize(options = {}) @options = { 'history' => nil, 'domain' => nil, 'api_key' => Sistrix.config.api_key, }.merge(options) if Sistrix.config.proxy RestClient.proxy = Sistrix.config.proxy end end
Public Instance Methods
call(options = {})
click to toggle source
# File lib/sistrix/domain/sichtbarkeitsindex.rb, line 22 def call(options = {}) data = fetch(options) @credits = data.xpath('//credits').first['used'].to_i @sichtbarkeitsindex = [] data.xpath('//answer/sichtbarkeitsindex').each do |o| @sichtbarkeitsindex << Record.new(o) end self end