Class: Worklog::Github::PullRequestDetails

Inherits:
Struct
  • Object
show all
Defined in:
lib/github/pull_request_details.rb

Overview

Details of a pull request, used internally

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#closed_atObject

Returns the value of attribute closed_at

Returns:

  • (Object)

    the current value of closed_at



6
7
8
# File 'lib/github/pull_request_details.rb', line 6

def closed_at
  @closed_at
end

#created_atObject

Returns the value of attribute created_at

Returns:

  • (Object)

    the current value of created_at



6
7
8
# File 'lib/github/pull_request_details.rb', line 6

def created_at
  @created_at
end

#creatorObject

Returns the value of attribute creator

Returns:

  • (Object)

    the current value of creator



6
7
8
# File 'lib/github/pull_request_details.rb', line 6

def creator
  @creator
end

#descriptionObject

Returns the value of attribute description

Returns:

  • (Object)

    the current value of description



6
7
8
# File 'lib/github/pull_request_details.rb', line 6

def description
  @description
end

#mergedObject

Returns the value of attribute merged

Returns:

  • (Object)

    the current value of merged



6
7
8
# File 'lib/github/pull_request_details.rb', line 6

def merged
  @merged
end

#merged_atObject

Returns the value of attribute merged_at

Returns:

  • (Object)

    the current value of merged_at



6
7
8
# File 'lib/github/pull_request_details.rb', line 6

def merged_at
  @merged_at
end

#stateObject

Returns the value of attribute state

Returns:

  • (Object)

    the current value of state



6
7
8
# File 'lib/github/pull_request_details.rb', line 6

def state
  @state
end

#titleObject

Returns the value of attribute title

Returns:

  • (Object)

    the current value of title



6
7
8
# File 'lib/github/pull_request_details.rb', line 6

def title
  @title
end

#urlObject

Returns the value of attribute url

Returns:

  • (Object)

    the current value of url



6
7
8
# File 'lib/github/pull_request_details.rb', line 6

def url
  @url
end

Instance Method Details

#merged?Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/github/pull_request_details.rb', line 8

def merged?
  state == 'closed' && merged == true
end