Class: Pronto::Status

Inherits:
Struct
  • Object
show all
Defined in:
lib/pronto/status.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#contextObject

Returns the value of attribute context

Returns:

  • (Object)

    the current value of context



2
3
4
# File 'lib/pronto/status.rb', line 2

def context
  @context
end

#descriptionObject

Returns the value of attribute description

Returns:

  • (Object)

    the current value of description



2
3
4
# File 'lib/pronto/status.rb', line 2

def description
  @description
end

#shaObject

Returns the value of attribute sha

Returns:

  • (Object)

    the current value of sha



2
3
4
# File 'lib/pronto/status.rb', line 2

def sha
  @sha
end

#stateObject

Returns the value of attribute state

Returns:

  • (Object)

    the current value of state



2
3
4
# File 'lib/pronto/status.rb', line 2

def state
  @state
end

Instance Method Details

#==(other) ⇒ Object



3
4
5
6
7
8
# File 'lib/pronto/status.rb', line 3

def ==(other)
  sha == other.sha &&
    state == other.state &&
    context == other.context &&
    description == other.description
end

#to_sObject



10
11
12
# File 'lib/pronto/status.rb', line 10

def to_s
  "[#{sha}] #{context} #{state} - #{description}"
end