Class: Vx::ServiceConnector::Github::Payload
- Inherits:
-
Struct
- Object
- Struct
- Vx::ServiceConnector::Github::Payload
- Defined in:
- lib/vx/service_connector/github/payload.rb
Instance Attribute Summary collapse
-
#params ⇒ Object
Returns the value of attribute params.
-
#session ⇒ Object
Returns the value of attribute session.
Instance Method Summary collapse
Instance Attribute Details
#params ⇒ Object
Returns the value of attribute params
6 7 8 |
# File 'lib/vx/service_connector/github/payload.rb', line 6 def params @params end |
#session ⇒ Object
Returns the value of attribute session
6 7 8 |
# File 'lib/vx/service_connector/github/payload.rb', line 6 def session @session end |
Instance Method Details
#build ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/vx/service_connector/github/payload.rb', line 8 def build ServiceConnector::Model::Payload.from_hash( internal_pull_request?: (pull_request? && !foreign_pull_request?), foreign_pull_request?: foreign_pull_request?, pull_request_number: pull_request_number, branch: branch, branch_label: branch_label, sha: sha, message: , author: , author_email: , web_url: web_url, tag: tag_name, skip: ignore?, ) rescue ::Octokit::NotFound, ::Octokit::Unauthorized => e Rails.logger.warn "#{e.class}: #{e.}" if defined?(Rails) OpenStruct.new ignore?: true end |