Class: TelegramBot::Issue
- Inherits:
-
Object
- Object
- TelegramBot::Issue
- Defined in:
- lib/telegram-bot/issue.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#id ⇒ Object
Returns the value of attribute id.
-
#number ⇒ Object
Returns the value of attribute number.
-
#state ⇒ Object
Returns the value of attribute state.
-
#title ⇒ Object
Returns the value of attribute title.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(id:, number:, title:, body:, state:, url:) ⇒ Issue
constructor
A new instance of Issue.
- #to_s ⇒ Object
Constructor Details
#initialize(id:, number:, title:, body:, state:, url:) ⇒ Issue
Returns a new instance of Issue.
5 6 7 8 9 10 11 12 |
# File 'lib/telegram-bot/issue.rb', line 5 def initialize(id:, number:, title:, body:, state:, url:) @id = id @number = number @title = title @body = body @state = state @url = url end |
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
3 4 5 |
# File 'lib/telegram-bot/issue.rb', line 3 def body @body end |
#id ⇒ Object
Returns the value of attribute id.
3 4 5 |
# File 'lib/telegram-bot/issue.rb', line 3 def id @id end |
#number ⇒ Object
Returns the value of attribute number.
3 4 5 |
# File 'lib/telegram-bot/issue.rb', line 3 def number @number end |
#state ⇒ Object
Returns the value of attribute state.
3 4 5 |
# File 'lib/telegram-bot/issue.rb', line 3 def state @state end |
#title ⇒ Object
Returns the value of attribute title.
3 4 5 |
# File 'lib/telegram-bot/issue.rb', line 3 def title @title end |
#url ⇒ Object
Returns the value of attribute url.
3 4 5 |
# File 'lib/telegram-bot/issue.rb', line 3 def url @url end |
Instance Method Details
#to_s ⇒ Object
14 15 16 17 18 19 20 21 |
# File 'lib/telegram-bot/issue.rb', line 14 def to_s "issue: #{@id}\n" + "number: #{@number}\n" + "title: #{@title}\n" + "body: #{@body}\n" + "state: #{@state}\n" + "url: #{@url}\n" end |