Class: Todoplicator::GitHubAdapter::Issue
- Inherits:
-
Object
- Object
- Todoplicator::GitHubAdapter::Issue
- Defined in:
- lib/todoplicator/git_hub_adapter.rb
Instance Method Summary collapse
- #body ⇒ Object
- #closed? ⇒ Boolean
-
#initialize(raw) ⇒ Issue
constructor
A new instance of Issue.
- #open? ⇒ Boolean
- #raw ⇒ Object
- #state ⇒ Object
- #title ⇒ Object
Constructor Details
#initialize(raw) ⇒ Issue
Returns a new instance of Issue.
6 7 8 |
# File 'lib/todoplicator/git_hub_adapter.rb', line 6 def initialize(raw) @raw = raw end |
Instance Method Details
#body ⇒ Object
14 15 16 |
# File 'lib/todoplicator/git_hub_adapter.rb', line 14 def body @raw.body end |
#closed? ⇒ Boolean
26 27 28 |
# File 'lib/todoplicator/git_hub_adapter.rb', line 26 def closed? state == "closed" end |
#open? ⇒ Boolean
30 31 32 |
# File 'lib/todoplicator/git_hub_adapter.rb', line 30 def open? state == "open" end |
#raw ⇒ Object
22 23 24 |
# File 'lib/todoplicator/git_hub_adapter.rb', line 22 def raw @raw end |
#state ⇒ Object
18 19 20 |
# File 'lib/todoplicator/git_hub_adapter.rb', line 18 def state @raw.state end |
#title ⇒ Object
10 11 12 |
# File 'lib/todoplicator/git_hub_adapter.rb', line 10 def title @raw.title end |