class PayrolleeCz::PayrollName

Attributes

description[R]
title[R]

Public Class Methods

new(code_refer, title, description, v_group, h_group) click to toggle source
Calls superclass method PayrolleeCz::CodeNameRefer::new
# File lib/payrollee_cz/core_items/payroll_name.rb, line 6
def initialize(code_refer, title, description, v_group, h_group)
  super(code_refer.code, code_refer.name)
  @title = title
  @description = description
  @xml_groups = {}
  @xml_groups[:vgrp_pos] = v_group if v_group
  @xml_groups[:hgrp_pos] = h_group if h_group
end

Public Instance Methods

get_groups() click to toggle source
# File lib/payrollee_cz/core_items/payroll_name.rb, line 15
def get_groups
  @xml_groups
end
match_hgroup?(group_code) click to toggle source
# File lib/payrollee_cz/core_items/payroll_name.rb, line 23
def match_hgroup?(group_code)
  @xml_groups[:hgrp_pos] == group_code
end
match_vgroup?(group_code) click to toggle source
# File lib/payrollee_cz/core_items/payroll_name.rb, line 19
def match_vgroup?(group_code)
  @xml_groups[:vgrp_pos] == group_code
end