Class: Apadmi::Grout::TriggeredBitriseBuild

Inherits:
Struct
  • Object
show all
Defined in:
lib/apadmi/grout/models/bitrise.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#build_numberObject

Returns the value of attribute build_number

Returns:

  • (Object)

    the current value of build_number



19
20
21
# File 'lib/apadmi/grout/models/bitrise.rb', line 19

def build_number
  @build_number
end

#build_slugObject

Returns the value of attribute build_slug

Returns:

  • (Object)

    the current value of build_slug



19
20
21
# File 'lib/apadmi/grout/models/bitrise.rb', line 19

def build_slug
  @build_slug
end

#build_urlObject

Returns the value of attribute build_url

Returns:

  • (Object)

    the current value of build_url



19
20
21
# File 'lib/apadmi/grout/models/bitrise.rb', line 19

def build_url
  @build_url
end

#messageObject

Returns the value of attribute message

Returns:

  • (Object)

    the current value of message



19
20
21
# File 'lib/apadmi/grout/models/bitrise.rb', line 19

def message
  @message
end

#serviceObject

Returns the value of attribute service

Returns:

  • (Object)

    the current value of service



19
20
21
# File 'lib/apadmi/grout/models/bitrise.rb', line 19

def service
  @service
end

#slugObject

Returns the value of attribute slug

Returns:

  • (Object)

    the current value of slug



19
20
21
# File 'lib/apadmi/grout/models/bitrise.rb', line 19

def slug
  @slug
end

#statusObject

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



19
20
21
# File 'lib/apadmi/grout/models/bitrise.rb', line 19

def status
  @status
end

#triggered_workflowObject

Returns the value of attribute triggered_workflow

Returns:

  • (Object)

    the current value of 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_successObject



20
21
22
# File 'lib/apadmi/grout/models/bitrise.rb', line 20

def finished_with_success
  status == STATUS_SUCCESS
end