Class: Vx::ServiceConnector::GitlabV6::Payload

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

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



5
6
7
# File 'lib/vx/service_connector/gitlab_v6/payload.rb', line 5

def params
  @params
end

#repoObject

Returns the value of attribute repo

Returns:

  • (Object)

    the current value of repo



5
6
7
# File 'lib/vx/service_connector/gitlab_v6/payload.rb', line 5

def repo
  @repo
end

#sessionObject

Returns the value of attribute session

Returns:

  • (Object)

    the current value of session



5
6
7
# File 'lib/vx/service_connector/gitlab_v6/payload.rb', line 5

def session
  @session
end

Instance Method Details

#buildObject



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

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