class LabClient::ApprovalRule

Inspect Helper

Public Instance Methods

eligible_approvers() click to toggle source
# File lib/labclient/approvals/rule.rb, line 12
def eligible_approvers
  @table[:eligible_approvers].map do |user_data|
    User.new(user_data, response, client)
  end
end
groups() click to toggle source
# File lib/labclient/approvals/rule.rb, line 30
def groups
  @table[:groups].map do |group_data|
    Group.new(group_data, response, client)
  end
end
inspect() click to toggle source
# File lib/labclient/approvals/rule.rb, line 8
def inspect
  "#<ApprovalRule id: #{id}, name: #{name}>"
end
protected_branches() click to toggle source
# File lib/labclient/approvals/rule.rb, line 18
def protected_branches
  @table[:protected_branches].map do |branch_data|
    LabClient::Branch.new(branch_data, response, client)
  end
end
users() click to toggle source
# File lib/labclient/approvals/rule.rb, line 24
def users
  @table[:users].map do |user_data|
    User.new(user_data, response, client)
  end
end