Class: Issue
- Inherits:
-
Object
- Object
- Issue
- Defined in:
- lib/jira.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#self_url ⇒ Object
readonly
Returns the value of attribute self_url.
Instance Method Summary collapse
-
#initialize(args) ⇒ Issue
constructor
A new instance of Issue.
Constructor Details
#initialize(args) ⇒ Issue
Returns a new instance of Issue.
4 5 6 7 8 |
# File 'lib/jira.rb', line 4 def initialize( args ) @self_url = args.fetch( 'self' ) @id = args.fetch( 'id' ) @key = args.fetch( 'key' ) end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
2 3 4 |
# File 'lib/jira.rb', line 2 def id @id end |
#key ⇒ Object (readonly)
Returns the value of attribute key.
2 3 4 |
# File 'lib/jira.rb', line 2 def key @key end |
#self_url ⇒ Object (readonly)
Returns the value of attribute self_url.
2 3 4 |
# File 'lib/jira.rb', line 2 def self_url @self_url end |