Class: Ace::Git::ProviderPullRequest

Inherits:
Data
  • Object
show all
Defined in:
lib/ace/git/providers/evidence.rb

Overview

Normalized evidence types produced by every provider implementation.

Provider packages translate their CLI responses into exactly these shapes, so consumers can stay forge-neutral. All fields except the identifying ones may be nil when a provider cannot supply them.

Pull request state values: :open, :merged, :closed. Issue state values: :open, :closed.

Instance Attribute Summary collapse

Instance Attribute Details

#author ⇒ Object (readonly)

Returns the value of attribute author

Returns:

  • (Object) —

    the current value of author



13
14
15
# File 'lib/ace/git/providers/evidence.rb', line 13

def author
  @author
end

#base_ref ⇒ Object (readonly)

Returns the value of attribute base_ref

Returns:

  • (Object) —

    the current value of base_ref



13
14
15
# File 'lib/ace/git/providers/evidence.rb', line 13

def base_ref
  @base_ref
end

#draft ⇒ Object (readonly)

Returns the value of attribute draft

Returns:

  • (Object) —

    the current value of draft



13
14
15
# File 'lib/ace/git/providers/evidence.rb', line 13

def draft
  @draft
end

#head_ref ⇒ Object (readonly)

Returns the value of attribute head_ref

Returns:

  • (Object) —

    the current value of head_ref



13
14
15
# File 'lib/ace/git/providers/evidence.rb', line 13

def head_ref
  @head_ref
end

#head_sha ⇒ Object (readonly)

Returns the value of attribute head_sha

Returns:

  • (Object) —

    the current value of head_sha



13
14
15
# File 'lib/ace/git/providers/evidence.rb', line 13

def head_sha
  @head_sha
end

#merged_at ⇒ Object (readonly)

Returns the value of attribute merged_at

Returns:

  • (Object) —

    the current value of merged_at



13
14
15
# File 'lib/ace/git/providers/evidence.rb', line 13

def merged_at
  @merged_at
end

#number ⇒ Object (readonly)

Returns the value of attribute number

Returns:

  • (Object) —

    the current value of number



13
14
15
# File 'lib/ace/git/providers/evidence.rb', line 13

def number
  @number
end

#server_name ⇒ Object (readonly)

Returns the value of attribute server_name

Returns:

  • (Object) —

    the current value of server_name



13
14
15
# File 'lib/ace/git/providers/evidence.rb', line 13

def server_name
  @server_name
end

#state ⇒ Object (readonly)

Returns the value of attribute state

Returns:

  • (Object) —

    the current value of state



13
14
15
# File 'lib/ace/git/providers/evidence.rb', line 13

def state
  @state
end

#title ⇒ Object (readonly)

Returns the value of attribute title

Returns:

  • (Object) —

    the current value of title



13
14
15
# File 'lib/ace/git/providers/evidence.rb', line 13

def title
  @title
end

#url ⇒ Object (readonly)

Returns the value of attribute url

Returns:

  • (Object) —

    the current value of url



13
14
15
# File 'lib/ace/git/providers/evidence.rb', line 13

def url
  @url
end