Sha256: c2392f1cbf7f09e36ba01f08e18ac1a96ccca5dde48400a858b4b13c7c515c23

Contents?: true

Size: 419 Bytes

Versions: 5

Compression:

Stored size: 419 Bytes

Contents

# frozen_string_literal: true

require "json"
require "uri"

module SearchConsoleApi
  module Objects
    class Site
      attr_accessor :site_url, :permission_level

      def initialize(attributes = {})
        @site_url = attributes["siteUrl"]
        @permission_level = attributes["permissionLevel"]
      end

      def encoded_site_url
        URI.encode_www_form_component(@site_url)
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
search_console_api-0.0.5 lib/search_console_api/objects/site.rb
search_console_api-0.0.4 lib/search_console_api/objects/site.rb
search_console_api-0.0.3 lib/search_console_api/objects/site.rb
search_console_api-0.0.2 lib/search_console_api/objects/site.rb
search_console_api-0.0.1 lib/search_console_api/objects/site.rb