Sha256: 6c6d6c21b947bb8f9776e3e910aa87ea05ed0ddac0190811a81c332007622e56

Contents?: true

Size: 347 Bytes

Versions: 10

Compression:

Stored size: 347 Bytes

Contents

# frozen_string_literal: true

module HackerOne
  module Client
    class Group
      delegate :name, :permissions, to: :attributes

      def initialize(group)
        @group = group
      end

      def id
        @group[:id]
      end

      private

      def attributes
        OpenStruct.new(@group[:attributes])
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
hackerone-client-0.23.0 lib/hackerone/client/group.rb
hackerone-client-0.22.1 lib/hackerone/client/group.rb
hackerone-client-0.22.0 lib/hackerone/client/group.rb
hackerone-client-0.21.0 lib/hackerone/client/group.rb
hackerone-client-0.20.1 lib/hackerone/client/group.rb
hackerone-client-0.20.0 lib/hackerone/client/group.rb
hackerone-client-0.19.0 lib/hackerone/client/group.rb
hackerone-client-0.18.0 lib/hackerone/client/group.rb
hackerone-client-0.17.0 lib/hackerone/client/group.rb
hackerone-client-0.16.0 lib/hackerone/client/group.rb