Class: Drone::Repo

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

Overview

Represent ‘repo` JSON as a model

Instance Attribute Summary collapse

Instance Attribute Details

#avatarString

Returns the URL to the repo avatar.

Returns:

  • (String)

    the URL to the repo avatar



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

attribute :avatar, String

#branchString

Returns the repo default branch.

Returns:

  • (String)

    the repo default branch



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

attribute :branch, String

#cloneString

Returns the URL to the repo SCM system.

Returns:

  • (String)

    the URL to the repo SCM system



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

attribute :clone, String

#deploysString

Returns the flag if deploys are allowed.

Returns:

  • (String)

    the flag if deploys are allowed



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

attribute :deploys, Boolean

#full_nameString

Returns the full repo name.

Returns:

  • (String)

    the full repo name



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

attribute :full_name, String

#idInteger

Returns the ID of the repo.

Returns:

  • (Integer)

    the ID of the repo



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

attribute :id, Integer

Returns the URL to the repo website.

Returns:

  • (String)

    the URL to the repo website



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

attribute :link, String

#nameString

Returns the repo name.

Returns:

  • (String)

    the repo name



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

attribute :name, String

#ownerString

Returns the owner name.

Returns:

  • (String)

    the owner name



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

attribute :owner, String

#prBoolean

Returns the flag if pull requests are allowed.

Returns:

  • (Boolean)

    the flag if pull requests are allowed



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

attribute :pr, Boolean

#privateBoolean

Returns the flag if repo is private.

Returns:

  • (Boolean)

    the flag if repo is private



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

attribute :private, Boolean

#pushBoolean

Returns the flag if pushs are allowed.

Returns:

  • (Boolean)

    the flag if pushs are allowed



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

attribute :push, Boolean

#tagsString

Returns the flag if tags are allowed.

Returns:

  • (String)

    the flag if tags are allowed



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

attribute :tags, Boolean

#timeoutInteger

Returns the timeout value.

Returns:

  • (Integer)

    the timeout value



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

attribute :timeout, Integer

#trustedBoolean

Returns the flag if the repo is trusted.

Returns:

  • (Boolean)

    the flag if the repo is trusted



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

attribute :trusted, Boolean