Class: Jira::Auto::Tool::FieldOption
- Includes:
- Comparable
- Defined in:
- lib/jira/auto/tool/field_option.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#jira_client ⇒ Object
readonly
Returns the value of attribute jira_client.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
- #<=>(other) ⇒ Object
-
#initialize(jira_client, id, value) ⇒ FieldOption
constructor
A new instance of FieldOption.
- #to_s ⇒ Object
Constructor Details
#initialize(jira_client, id, value) ⇒ FieldOption
Returns a new instance of FieldOption.
13 14 15 16 17 |
# File 'lib/jira/auto/tool/field_option.rb', line 13 def initialize(jira_client, id, value) @jira_client = jira_client @id = id @value = value end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
11 12 13 |
# File 'lib/jira/auto/tool/field_option.rb', line 11 def id @id end |
#jira_client ⇒ Object (readonly)
Returns the value of attribute jira_client.
11 12 13 |
# File 'lib/jira/auto/tool/field_option.rb', line 11 def jira_client @jira_client end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
11 12 13 |
# File 'lib/jira/auto/tool/field_option.rb', line 11 def value @value end |
Instance Method Details
#<=>(other) ⇒ Object
23 24 25 |
# File 'lib/jira/auto/tool/field_option.rb', line 23 def <=>(other) comparison_values(self) <=> comparison_values(other) end |
#to_s ⇒ Object
19 20 21 |
# File 'lib/jira/auto/tool/field_option.rb', line 19 def to_s "FieldOption(id: #{id}, value: '#{value}')" end |