Class: Drone::RepoRepresenter

Inherits:
Representable::Decorator
  • Object
show all
Includes:
Representable::JSON
Defined in:
lib/drone/models/repo_representer.rb

Overview

Transform ‘repo` JSON payload

Instance Attribute Summary collapse

Instance Attribute Details

#avatarString

Returns the URL to the repo avatar.

Returns:

  • (String)

    the URL to the repo avatar



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

property :avatar,
as: :avatar_url

#branchString

Returns the repo default branch.

Returns:

  • (String)

    the repo default branch



59
60
# File 'lib/drone/models/repo_representer.rb', line 59

property :branch,
as: :default_branch

#cloneString

Returns the URL to the repo SCM system.

Returns:

  • (String)

    the URL to the repo SCM system



54
55
# File 'lib/drone/models/repo_representer.rb', line 54

property :clone,
as: :clone_url

#deploysString

Returns the flag if deploys are allowed.

Returns:

  • (String)

    the flag if deploys are allowed



86
87
# File 'lib/drone/models/repo_representer.rb', line 86

property :deploys,
as: :allow_deploys

#full_nameString

Returns the full repo name.

Returns:

  • (String)

    the full repo name



40
# File 'lib/drone/models/repo_representer.rb', line 40

property :full_name

#idInteger

Returns the ID of the repo.

Returns:

  • (Integer)

    the ID of the repo



28
# File 'lib/drone/models/repo_representer.rb', line 28

property :id

Returns the URL to the repo website.

Returns:

  • (String)

    the URL to the repo website



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

property :link,
as: :link_url

#nameString

Returns the repo name.

Returns:

  • (String)

    the repo name



36
# File 'lib/drone/models/repo_representer.rb', line 36

property :name

#ownerString

Returns the owner name.

Returns:

  • (String)

    the owner name



32
# File 'lib/drone/models/repo_representer.rb', line 32

property :owner

#prBoolean

Returns the flag if pull requests are allowed.

Returns:

  • (Boolean)

    the flag if pull requests are allowed



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

property :pr,
as: :allow_pr

#privateBoolean

Returns the flag if repo is private.

Returns:

  • (Boolean)

    the flag if repo is private



68
# File 'lib/drone/models/repo_representer.rb', line 68

property :private

#pushBoolean

Returns the flag if pushs are allowed.

Returns:

  • (Boolean)

    the flag if pushs are allowed



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

property :push,
as: :allow_push

#tagsString

Returns the flag if tags are allowed.

Returns:

  • (String)

    the flag if tags are allowed



91
92
# File 'lib/drone/models/repo_representer.rb', line 91

property :tags,
as: :allow_tags

#timeoutInteger

Returns the timeout value.

Returns:

  • (Integer)

    the timeout value



64
# File 'lib/drone/models/repo_representer.rb', line 64

property :timeout

#trustedBoolean

Returns the flag if the repo is trusted.

Returns:

  • (Boolean)

    the flag if the repo is trusted



72
# File 'lib/drone/models/repo_representer.rb', line 72

property :trusted