Sha256: 78dd1cc1d02be6dd13808bf18885248e6ef3428b7603016c70f35a8f0a858a2a

Contents?: true

Size: 461 Bytes

Versions: 1

Compression:

Stored size: 461 Bytes

Contents

module QuakeliveApi
  class Profile
    module Awards
      class Base < ::QuakeliveApi::Base
        attr_accessor :earned, :unearned

        private

          def page
            raise NotImplementedError
          end

          def url
            "/profile/awards/#{player_name}/#{page}"
          end

          def setup_variables
            @earned   = parser.earned
            @unearned = parser.unearned
          end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
quakelive_api-0.0.1 lib/quakelive_api/profile/awards/base.rb