Class: Icalia::CodeMergeRequestEvent

Inherits:
ModelBase
  • Object
show all
Includes:
ResourceAction
Defined in:
lib/icalia/models/events/code_merge_request_event.rb

Instance Attribute Summary collapse

Attributes inherited from ModelBase

#serialization_context

Instance Method Summary collapse

Methods inherited from ModelBase

has_many, has_one, #initialize

Methods included from ResourceIdentity

#to_key

Constructor Details

This class inherits a constructor from Icalia::ModelBase

Instance Attribute Details

#merge_requestObject (readonly)

Returns the value of attribute merge_request.



6
7
8
# File 'lib/icalia/models/events/code_merge_request_event.rb', line 6

def merge_request
  @merge_request
end

Instance Method Details

#declined?Boolean

Returns:

  • (Boolean)


11
# File 'lib/icalia/models/events/code_merge_request_event.rb', line 11

def declined?; action == 'declined'; end

#merged?Boolean

Returns:

  • (Boolean)


10
# File 'lib/icalia/models/events/code_merge_request_event.rb', line 10

def merged?; action == 'merged'; end

#opened?Boolean

Returns:

  • (Boolean)


8
# File 'lib/icalia/models/events/code_merge_request_event.rb', line 8

def opened?; action == 'opened'; end

#updated?Boolean

Returns:

  • (Boolean)


9
# File 'lib/icalia/models/events/code_merge_request_event.rb', line 9

def updated?; action == 'updated'; end