Sha256: dcbb643990b0af808877b9ff1356e9c7828c510063470c387481e058ab487035
Contents?: true
Size: 957 Bytes
Versions: 2
Compression:
Stored size: 957 Bytes
Contents
module Awis module API class SitesLinkingIn < Base attr_accessor :sites def fetch(arguments = {}) raise ArgumentError, "You must provide a URL" unless arguments.has_key?(:url) validation_arguments!(arguments) @response_body = Awis::Connection.new.get(params) self end def load_request_uri(arguments = {}) validation_arguments!(arguments) super(params) end private def validation_arguments!(arguments) @arguments = arguments @arguments[:count] = arguments.fetch(:count, 20) @arguments[:start] = arguments.fetch(:start, 0) end def params { "Action" => "SitesLinkingIn", "Url" => arguments[:url], "ResponseGroup" => "SitesLinkingIn", "Count" => arguments[:count], "Start" => arguments[:start] } end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
awis-sdk-ruby-0.0.6 | lib/awis/api/sites_linking_in.rb |
awis-sdk-ruby-0.0.5 | lib/awis/api/sites_linking_in.rb |