Class: Drone::Build

Inherits:
Object
  • Object
show all
Defined in:
lib/drone/models/build.rb

Overview

Represent ‘build` JSON as a model

Instance Attribute Summary collapse

Instance Attribute Details

#authorString

Returns the commit author.

Returns:

  • (String)

    the commit author



81
# File 'lib/drone/models/build.rb', line 81

attribute :author, String

#author_avatarString

Returns the link to author avatar.

Returns:

  • (String)

    the link to author avatar



85
# File 'lib/drone/models/build.rb', line 85

attribute :author_avatar, String

#author_emailString

Returns the email of the author.

Returns:

  • (String)

    the email of the author



89
# File 'lib/drone/models/build.rb', line 89

attribute :author_email, String

#branchString

Returns the branch of the build.

Returns:

  • (String)

    the branch of the build



53
# File 'lib/drone/models/build.rb', line 53

attribute :branch, String

#commitString

Returns the commit hash of the build.

Returns:

  • (String)

    the commit hash of the build



49
# File 'lib/drone/models/build.rb', line 49

attribute :commit, String

#created_atTime

Returns the time when the build have been created.

Returns:

  • (Time)

    the time when the build have been created



101
# File 'lib/drone/models/build.rb', line 101

attribute :created_at, Time

#deploy_toString

Returns the target of the deploy.

Returns:

  • (String)

    the target of the deploy



45
# File 'lib/drone/models/build.rb', line 45

attribute :deploy_to, String

#enqueued_atTime

Returns the time when the build have been enqueued.

Returns:

  • (Time)

    the time when the build have been enqueued



97
# File 'lib/drone/models/build.rb', line 97

attribute :enqueued_at, Time

#eventString

Returns the event of the build.

Returns:

  • (String)

    the event of the build



37
# File 'lib/drone/models/build.rb', line 37

attribute :event, String

#finished_atTime

Returns the time when the build have been finished.

Returns:

  • (Time)

    the time when the build have been finished



109
# File 'lib/drone/models/build.rb', line 109

attribute :finished_at, Time

#idInteger

Returns the ID of the build.

Returns:

  • (Integer)

    the ID of the build



29
# File 'lib/drone/models/build.rb', line 29

attribute :id, Integer

Returns the link to the current build.

Returns:

  • (String)

    the link to the current build



77
# File 'lib/drone/models/build.rb', line 77

attribute :link, String

#messageString

Returns the commit message of the build.

Returns:

  • (String)

    the commit message of the build



73
# File 'lib/drone/models/build.rb', line 73

attribute :message, String

#numberInteger

Returns the number of the build.

Returns:

  • (Integer)

    the number of the build



33
# File 'lib/drone/models/build.rb', line 33

attribute :number, Integer

#refString

Returns the reference of the build.

Returns:

  • (String)

    the reference of the build



57
# File 'lib/drone/models/build.rb', line 57

attribute :ref, String

#refspecString

Returns the reference spec of the build.

Returns:

  • (String)

    the reference spec of the build



61
# File 'lib/drone/models/build.rb', line 61

attribute :refspec, String

#remoteString

Returns the remote name of the build.

Returns:

  • (String)

    the remote name of the build



65
# File 'lib/drone/models/build.rb', line 65

attribute :remote, String

#started_atTime

Returns the time when the build have been started.

Returns:

  • (Time)

    the time when the build have been started



105
# File 'lib/drone/models/build.rb', line 105

attribute :started_at, Time

#statusString

Returns the status of the build.

Returns:

  • (String)

    the status of the build



41
# File 'lib/drone/models/build.rb', line 41

attribute :status, String

#timestampTime

Returns the timestamp of the build.

Returns:

  • (Time)

    the timestamp of the build



93
# File 'lib/drone/models/build.rb', line 93

attribute :timestamp, Time

#titleString

Returns the title of the build.

Returns:

  • (String)

    the title of the build



69
# File 'lib/drone/models/build.rb', line 69

attribute :title, String