Class: Vx::ServiceConnector::Model::Payload
- Inherits:
-
Struct
- Object
- Struct
- Vx::ServiceConnector::Model::Payload
- Defined in:
- lib/vx/service_connector/model.rb
Instance Attribute Summary collapse
-
#author ⇒ Object
Returns the value of attribute author.
-
#author_email ⇒ Object
Returns the value of attribute author_email.
-
#branch ⇒ Object
Returns the value of attribute branch.
-
#branch_label ⇒ Object
Returns the value of attribute branch_label.
-
#ignore? ⇒ Object
Returns the value of attribute ignore?.
-
#message ⇒ Object
Returns the value of attribute message.
-
#pull_request? ⇒ Object
Returns the value of attribute pull_request?.
-
#pull_request_number ⇒ Object
Returns the value of attribute pull_request_number.
-
#sha ⇒ Object
Returns the value of attribute sha.
-
#web_url ⇒ Object
Returns the value of attribute web_url.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#author ⇒ Object
Returns the value of attribute author
14 15 16 |
# File 'lib/vx/service_connector/model.rb', line 14 def @author end |
#author_email ⇒ Object
Returns the value of attribute author_email
14 15 16 |
# File 'lib/vx/service_connector/model.rb', line 14 def @author_email end |
#branch ⇒ Object
Returns the value of attribute branch
14 15 16 |
# File 'lib/vx/service_connector/model.rb', line 14 def branch @branch end |
#branch_label ⇒ Object
Returns the value of attribute branch_label
14 15 16 |
# File 'lib/vx/service_connector/model.rb', line 14 def branch_label @branch_label end |
#ignore? ⇒ Object
Returns the value of attribute ignore?
14 15 16 |
# File 'lib/vx/service_connector/model.rb', line 14
def ignore?
@ignore?
end
|
#message ⇒ Object
Returns the value of attribute message
14 15 16 |
# File 'lib/vx/service_connector/model.rb', line 14 def @message end |
#pull_request? ⇒ Object
Returns the value of attribute pull_request?
14 15 16 |
# File 'lib/vx/service_connector/model.rb', line 14
def pull_request?
@pull_request?
end
|
#pull_request_number ⇒ Object
Returns the value of attribute pull_request_number
14 15 16 |
# File 'lib/vx/service_connector/model.rb', line 14 def pull_request_number @pull_request_number end |
#sha ⇒ Object
Returns the value of attribute sha
14 15 16 |
# File 'lib/vx/service_connector/model.rb', line 14 def sha @sha end |
#web_url ⇒ Object
Returns the value of attribute web_url
14 15 16 |
# File 'lib/vx/service_connector/model.rb', line 14 def web_url @web_url end |
Class Method Details
.from_hash(params) ⇒ Object
29 30 31 32 33 34 35 |
# File 'lib/vx/service_connector/model.rb', line 29 def from_hash(params) payload = Payload.new payload.members.each do |m| payload[m] = params.key?(m) ? params[m] : params[m.to_s] end payload end |
Instance Method Details
#to_hash ⇒ Object
26 |
# File 'lib/vx/service_connector/model.rb', line 26 def to_hash ; to_h end |