Class: HackerOne::Client::Member

Inherits:
Object
  • Object
show all
Defined in:
lib/hackerone/client/member.rb

Instance Method Summary collapse

Constructor Details

#initialize(member) ⇒ Member

Returns a new instance of Member.



6
7
8
# File 'lib/hackerone/client/member.rb', line 6

def initialize(member)
  @member = member
end

Instance Method Details

#idObject



14
15
16
# File 'lib/hackerone/client/member.rb', line 14

def id
  @member[:id]
end

#userObject



10
11
12
# File 'lib/hackerone/client/member.rb', line 10

def user
  @user ||= User.new(relationships.user[:data])
end