Class: Todoplicator::GitHubAdapter::Issue

Inherits:
Object
  • Object
show all
Defined in:
lib/todoplicator/git_hub_adapter.rb

Instance Method Summary collapse

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

#bodyObject



14
15
16
# File 'lib/todoplicator/git_hub_adapter.rb', line 14

def body
  @raw.body
end

#closed?Boolean

Returns:

  • (Boolean)


26
27
28
# File 'lib/todoplicator/git_hub_adapter.rb', line 26

def closed?
  state == "closed"
end

#open?Boolean

Returns:

  • (Boolean)


30
31
32
# File 'lib/todoplicator/git_hub_adapter.rb', line 30

def open?
  state == "open"
end

#rawObject



22
23
24
# File 'lib/todoplicator/git_hub_adapter.rb', line 22

def raw
  @raw
end

#stateObject



18
19
20
# File 'lib/todoplicator/git_hub_adapter.rb', line 18

def state
  @raw.state
end

#titleObject



10
11
12
# File 'lib/todoplicator/git_hub_adapter.rb', line 10

def title
  @raw.title
end