Sha256: 1de3ff88833d02754f5d585e2389a92bd905016a255728b5b16082fd662a1e2b

Contents?: true

Size: 387 Bytes

Versions: 7

Compression:

Stored size: 387 Bytes

Contents

module HubLink
  module Api
    class ReviewRequest
      attr_reader :created_at, :user, :id

      def initialize(id:, created_at:, user:)
        @id = id
        @created_at = created_at
        @user = user
      end

      def reviewer
        user.login
      end

      def to_h
        Slicer.new(self, columns: %i(id user created_at reviewer)).to_h
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
hub_link-0.7.0 lib/hub_link/api/review_request.rb
hub_link-0.6.0 lib/hub_link/api/review_request.rb
hub_link-0.5.0 lib/hub_link/api/review_request.rb
hub_link-0.4.0 lib/hub_link/api/review_request.rb
hub_link-0.3.0 lib/hub_link/api/review_request.rb
hub_link-0.2.0 lib/hub_link/api/review_request.rb
hub_link-0.1.0 lib/hub_link/api/review_request.rb