Class: Vx::ServiceConnector::GitlabV5::Payload

Inherits:
Struct
  • Object
show all
Defined in:
lib/vx/service_connector/gitlab_v5/payload.rb

Direct Known Subclasses

Vx::ServiceConnector::GitlabV6::Payload

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#paramsObject

Returns the value of attribute params

Returns:

  • (Object)

    the current value of params



4
5
6
# File 'lib/vx/service_connector/gitlab_v5/payload.rb', line 4

def params
  @params
end

#repoObject

Returns the value of attribute repo

Returns:

  • (Object)

    the current value of repo



4
5
6
# File 'lib/vx/service_connector/gitlab_v5/payload.rb', line 4

def repo
  @repo
end

#sessionObject

Returns the value of attribute session

Returns:

  • (Object)

    the current value of session



4
5
6
# File 'lib/vx/service_connector/gitlab_v5/payload.rb', line 4

def session
  @session
end

Instance Method Details

#buildObject



6
7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/vx/service_connector/gitlab_v5/payload.rb', line 6

def build
  ServiceConnector::Model::Payload.new(
    !!ignore?,
    !!pull_request?,
    pull_request_number,
    branch,
    branch_label,
    sha,
    message,
    author,
    author_email,
    web_url
  )
end