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



129
130
131
132
133
# File 'lib/gh_inspector/sidekick.rb', line 129

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.



126
127
128
# File 'lib/gh_inspector/sidekick.rb', line 126

def body
  @body
end

#commentsObject

Returns the value of attribute comments.



126
127
128
# File 'lib/gh_inspector/sidekick.rb', line 126

def comments
  @comments
end

#html_urlObject

Returns the value of attribute html_url.



126
127
128
# File 'lib/gh_inspector/sidekick.rb', line 126

def html_url
  @html_url
end

#numberObject

Returns the value of attribute number.



126
127
128
# File 'lib/gh_inspector/sidekick.rb', line 126

def number
  @number
end

#stateObject

Returns the value of attribute state.



126
127
128
# File 'lib/gh_inspector/sidekick.rb', line 126

def state
  @state
end

#titleObject

Returns the value of attribute title.



126
127
128
# File 'lib/gh_inspector/sidekick.rb', line 126

def title
  @title
end

#updated_atObject

Returns the value of attribute updated_at.



126
127
128
# File 'lib/gh_inspector/sidekick.rb', line 126

def updated_at
  @updated_at
end