Class: Inspector::Issue

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*h) ⇒ Issue

Hash -> public attributes


95
96
97
98
99
# File 'lib/sidekick.rb', line 95

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.


92
93
94
# File 'lib/sidekick.rb', line 92

def body
  @body
end

#commentsObject

Returns the value of attribute comments.


92
93
94
# File 'lib/sidekick.rb', line 92

def comments
  @comments
end

#html_urlObject

Returns the value of attribute html_url.


92
93
94
# File 'lib/sidekick.rb', line 92

def html_url
  @html_url
end

#numberObject

Returns the value of attribute number.


92
93
94
# File 'lib/sidekick.rb', line 92

def number
  @number
end

#stateObject

Returns the value of attribute state.


92
93
94
# File 'lib/sidekick.rb', line 92

def state
  @state
end

#titleObject

Returns the value of attribute title.


92
93
94
# File 'lib/sidekick.rb', line 92

def title
  @title
end

#updated_atObject

Returns the value of attribute updated_at.


92
93
94
# File 'lib/sidekick.rb', line 92

def updated_at
  @updated_at
end