Class: GhInspector::Issue
- Inherits:
-
Object
- Object
- GhInspector::Issue
- Defined in:
- lib/gh_inspector/sidekick.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#comments ⇒ Object
Returns the value of attribute comments.
-
#html_url ⇒ Object
Returns the value of attribute html_url.
-
#number ⇒ Object
Returns the value of attribute number.
-
#state ⇒ Object
Returns the value of attribute state.
-
#title ⇒ Object
Returns the value of attribute title.
-
#updated_at ⇒ Object
Returns the value of attribute updated_at.
Instance Method Summary collapse
-
#initialize(*h) ⇒ Issue
constructor
Hash -> public attributes.
Constructor Details
#initialize(*h) ⇒ Issue
Hash -> public attributes
131 132 133 134 135 |
# File 'lib/gh_inspector/sidekick.rb', line 131 def initialize(*h) if h.length == 1 && h.first.kind_of?(Hash) h.first.each { |k, v| send("#{k}=", v) if public_methods.include?("#{k}=".to_sym) } end end |
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
128 129 130 |
# File 'lib/gh_inspector/sidekick.rb', line 128 def body @body end |
#comments ⇒ Object
Returns the value of attribute comments.
128 129 130 |
# File 'lib/gh_inspector/sidekick.rb', line 128 def comments @comments end |
#html_url ⇒ Object
Returns the value of attribute html_url.
128 129 130 |
# File 'lib/gh_inspector/sidekick.rb', line 128 def html_url @html_url end |
#number ⇒ Object
Returns the value of attribute number.
128 129 130 |
# File 'lib/gh_inspector/sidekick.rb', line 128 def number @number end |
#state ⇒ Object
Returns the value of attribute state.
128 129 130 |
# File 'lib/gh_inspector/sidekick.rb', line 128 def state @state end |
#title ⇒ Object
Returns the value of attribute title.
128 129 130 |
# File 'lib/gh_inspector/sidekick.rb', line 128 def title @title end |
#updated_at ⇒ Object
Returns the value of attribute updated_at.
128 129 130 |
# File 'lib/gh_inspector/sidekick.rb', line 128 def updated_at @updated_at end |