Class: Apadmi::Grout::TriggeredBitriseBuild
- Inherits:
-
Struct
- Object
- Struct
- Apadmi::Grout::TriggeredBitriseBuild
- Defined in:
- lib/apadmi/grout/models/bitrise.rb
Instance Attribute Summary collapse
-
#build_number ⇒ Object
Returns the value of attribute build_number.
-
#build_slug ⇒ Object
Returns the value of attribute build_slug.
-
#build_url ⇒ Object
Returns the value of attribute build_url.
-
#message ⇒ Object
Returns the value of attribute message.
-
#service ⇒ Object
Returns the value of attribute service.
-
#slug ⇒ Object
Returns the value of attribute slug.
-
#status ⇒ Object
Returns the value of attribute status.
-
#triggered_workflow ⇒ Object
Returns the value of attribute triggered_workflow.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#build_number ⇒ Object
Returns the value of attribute build_number
19 20 21 |
# File 'lib/apadmi/grout/models/bitrise.rb', line 19 def build_number @build_number end |
#build_slug ⇒ Object
Returns the value of attribute build_slug
19 20 21 |
# File 'lib/apadmi/grout/models/bitrise.rb', line 19 def build_slug @build_slug end |
#build_url ⇒ Object
Returns the value of attribute build_url
19 20 21 |
# File 'lib/apadmi/grout/models/bitrise.rb', line 19 def build_url @build_url end |
#message ⇒ Object
Returns the value of attribute message
19 20 21 |
# File 'lib/apadmi/grout/models/bitrise.rb', line 19 def @message end |
#service ⇒ Object
Returns the value of attribute service
19 20 21 |
# File 'lib/apadmi/grout/models/bitrise.rb', line 19 def service @service end |
#slug ⇒ Object
Returns the value of attribute slug
19 20 21 |
# File 'lib/apadmi/grout/models/bitrise.rb', line 19 def slug @slug end |
#status ⇒ Object
Returns the value of attribute status
19 20 21 |
# File 'lib/apadmi/grout/models/bitrise.rb', line 19 def status @status end |
#triggered_workflow ⇒ Object
Returns the value of attribute triggered_workflow
19 20 21 |
# File 'lib/apadmi/grout/models/bitrise.rb', line 19 def triggered_workflow @triggered_workflow end |
Class Method Details
.from_json(json) ⇒ Object
24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/apadmi/grout/models/bitrise.rb', line 24 def self.from_json(json) TriggeredBitriseBuild.new( json["build_number"], json["build_slug"], json["build_url"], json["message"], json["service"], json["slug"], json["status"], json["triggered_workflow"] ) end |
Instance Method Details
#finished_with_success ⇒ Object
20 21 22 |
# File 'lib/apadmi/grout/models/bitrise.rb', line 20 def finished_with_success status == STATUS_SUCCESS end |