Class: Jirarest2Field::MultiUserField

Inherits:
MultiHashField show all
Defined in:
lib/jirarest2/field.rb

Overview

Unfortunately Users and Groups don’t give us any clue as to how to set their “key” element. Therefore this own class

Instance Attribute Summary

Attributes inherited from MultiHashField

#key

Attributes inherited from MultiField

#value

Attributes inherited from Field

#allowed_values, #id, #name, #raw_value, #readonly, #required

Instance Method Summary collapse

Methods inherited from MultiHashField

#parse_value, #to_j, #to_j_inner

Methods inherited from MultiField

#<<, #[], #[]=, #delete, #delete_by_value, #to_j, #value_allowed?

Methods inherited from Field

#createmeta, #parse_value, #to_j, #value, #value=, #value_allowed?

Constructor Details

#initialize(id, name, args) ⇒ MultiUserField

Returns a new instance of MultiUserField.



579
580
581
582
# File 'lib/jirarest2/field.rb', line 579

def initialize(id,name,args)
  @key = "name"
  super
end