Sha256: fd7d3300bab466c00eea50e791687c97d2c988a9837f223906a3cd2c3ae7e174
Contents?: true
Size: 478 Bytes
Versions: 16
Compression:
Stored size: 478 Bytes
Contents
module HackerOne module Client class Member delegate :permissions, to: :attributes def initialize(member) @member = member end def user @user ||= User.new(relationships.user[:data]) end def id @member[:id] end private def attributes OpenStruct.new(@member[:attributes]) end def relationships OpenStruct.new(@member[:relationships]) end end end end
Version data entries
16 entries across 16 versions & 1 rubygems