Class: GhInspector::Issue

Inherits:
Object
  • Object
show all
Defined in:
lib/gh_inspector/sidekick.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*h) ⇒ Issue

Hash -> public attributes



104
105
106
107
108
# File 'lib/gh_inspector/sidekick.rb', line 104

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

#bodyObject

Returns the value of attribute body.



101
102
103
# File 'lib/gh_inspector/sidekick.rb', line 101

def body
  @body
end

#commentsObject

Returns the value of attribute comments.



101
102
103
# File 'lib/gh_inspector/sidekick.rb', line 101

def comments
  @comments
end

#html_urlObject

Returns the value of attribute html_url.



101
102
103
# File 'lib/gh_inspector/sidekick.rb', line 101

def html_url
  @html_url
end

#numberObject

Returns the value of attribute number.



101
102
103
# File 'lib/gh_inspector/sidekick.rb', line 101

def number
  @number
end

#stateObject

Returns the value of attribute state.



101
102
103
# File 'lib/gh_inspector/sidekick.rb', line 101

def state
  @state
end

#titleObject

Returns the value of attribute title.



101
102
103
# File 'lib/gh_inspector/sidekick.rb', line 101

def title
  @title
end

#updated_atObject

Returns the value of attribute updated_at.



101
102
103
# File 'lib/gh_inspector/sidekick.rb', line 101

def updated_at
  @updated_at
end