Class: Apadmi::Grout::PullRequest
- Inherits:
-
Object
- Object
- Apadmi::Grout::PullRequest
- Defined in:
- lib/apadmi/grout/models/pull_request.rb
Overview
Represents a pull request object derived from the Jira REST API response.
Instance Attribute Summary collapse
- #declined ⇒ bool readonly
- #id ⇒ String readonly
- #merged ⇒ bool readonly
- #name ⇒ String readonly
- #open ⇒ bool readonly
Instance Method Summary collapse
-
#initialize(id, name, merged, declined) ⇒ PullRequest
constructor
A new instance of PullRequest.
Constructor Details
#initialize(id, name, merged, declined) ⇒ PullRequest
Returns a new instance of PullRequest.
22 23 24 25 26 27 28 |
# File 'lib/apadmi/grout/models/pull_request.rb', line 22 def initialize(id, name, merged, declined) @id = id @name = name @merged = merged @declined = declined @open = (!merged and !declined) end |
Instance Attribute Details
#declined ⇒ bool (readonly)
14 15 16 |
# File 'lib/apadmi/grout/models/pull_request.rb', line 14 def declined @declined end |
#id ⇒ String (readonly)
8 9 10 |
# File 'lib/apadmi/grout/models/pull_request.rb', line 8 def id @id end |
#merged ⇒ bool (readonly)
12 13 14 |
# File 'lib/apadmi/grout/models/pull_request.rb', line 12 def merged @merged end |
#name ⇒ String (readonly)
10 11 12 |
# File 'lib/apadmi/grout/models/pull_request.rb', line 10 def name @name end |
#open ⇒ bool (readonly)
16 17 18 |
# File 'lib/apadmi/grout/models/pull_request.rb', line 16 def open @open end |