Sha256: 6ac25d60a0471ce09d344c36f2a911dbb95519efdc614b21962fd60340a065cf

Contents?: true

Size: 910 Bytes

Versions: 3

Compression:

Stored size: 910 Bytes

Contents

# frozen_string_literal: true

module HenshinBelt
  module AuthMethods
    attr_accessor :me, :resource_token, :resource_owner, :resource_credentials

    # rubocop:disable Lint/DuplicateMethods
    def protected_endpoint=(protected)
      @protected_endpoint = protected
    end

    def protected_endpoint?
      @protected_endpoint || false
    end

    def resource_token
      @_resource_token
    end

    def resource_token=(token)
      @_resource_token = token
    end

    def me=(resource)
      @_me = resource
    end

    def me
      @_me
    end

    def resource_owner=(resource)
      @_resource_owner = resource
    end

    def resource_owner
      @_resource_owner
    end

    def resource_credentials=(credentials)
      @_resource_credentials = credentials
    end

    def resource_credentials
      @_resource_credentials
    end

    # rubocop:enable Lint/DuplicateMethods
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
henshin-belt-0.0.3 lib/henshin_belt/auth_methods.rb
henshin-belt-0.0.2 lib/henshin_belt/auth_methods.rb
henshin-belt-0.0.1 lib/henshin_belt/auth_methods.rb