Class: Drone::RepoRepresenter
- Inherits:
-
Representable::Decorator
- Object
- Representable::Decorator
- Drone::RepoRepresenter
- Includes:
- Representable::JSON
- Defined in:
- lib/drone/models/repo_representer.rb
Overview
Transform ‘repo` JSON payload
Instance Attribute Summary collapse
-
#avatar ⇒ String
The URL to the repo avatar.
-
#branch ⇒ String
The repo default branch.
-
#clone ⇒ String
The URL to the repo SCM system.
-
#deploys ⇒ String
The flag if deploys are allowed.
-
#full_name ⇒ String
The full repo name.
-
#id ⇒ Integer
The ID of the repo.
-
#link ⇒ String
The URL to the repo website.
-
#name ⇒ String
The repo name.
-
#owner ⇒ String
The owner name.
-
#pr ⇒ Boolean
The flag if pull requests are allowed.
-
#private ⇒ Boolean
The flag if repo is private.
-
#push ⇒ Boolean
The flag if pushs are allowed.
-
#tags ⇒ String
The flag if tags are allowed.
-
#timeout ⇒ Integer
The timeout value.
-
#trusted ⇒ Boolean
The flag if the repo is trusted.
Instance Attribute Details
#avatar ⇒ String
Returns the URL to the repo avatar.
44 45 |
# File 'lib/drone/models/repo_representer.rb', line 44 property :avatar, as: :avatar_url |
#branch ⇒ String
Returns the repo default branch.
59 60 |
# File 'lib/drone/models/repo_representer.rb', line 59 property :branch, as: :default_branch |
#clone ⇒ String
Returns the URL to the repo SCM system.
54 55 |
# File 'lib/drone/models/repo_representer.rb', line 54 property :clone, as: :clone_url |
#deploys ⇒ String
Returns the flag if deploys are allowed.
86 87 |
# File 'lib/drone/models/repo_representer.rb', line 86 property :deploys, as: :allow_deploys |
#full_name ⇒ String
Returns the full repo name.
40 |
# File 'lib/drone/models/repo_representer.rb', line 40 property :full_name |
#id ⇒ Integer
Returns the ID of the repo.
28 |
# File 'lib/drone/models/repo_representer.rb', line 28 property :id |
#link ⇒ String
Returns the URL to the repo website.
49 50 |
# File 'lib/drone/models/repo_representer.rb', line 49 property :link, as: :link_url |
#name ⇒ String
Returns the repo name.
36 |
# File 'lib/drone/models/repo_representer.rb', line 36 property :name |
#owner ⇒ String
Returns the owner name.
32 |
# File 'lib/drone/models/repo_representer.rb', line 32 property :owner |
#pr ⇒ Boolean
Returns the flag if pull requests are allowed.
76 77 |
# File 'lib/drone/models/repo_representer.rb', line 76 property :pr, as: :allow_pr |
#private ⇒ Boolean
Returns the flag if repo is private.
68 |
# File 'lib/drone/models/repo_representer.rb', line 68 property :private |
#push ⇒ Boolean
Returns the flag if pushs are allowed.
81 82 |
# File 'lib/drone/models/repo_representer.rb', line 81 property :push, as: :allow_push |
#tags ⇒ String
Returns the flag if tags are allowed.
91 92 |
# File 'lib/drone/models/repo_representer.rb', line 91 property :tags, as: :allow_tags |
#timeout ⇒ Integer
Returns the timeout value.
64 |
# File 'lib/drone/models/repo_representer.rb', line 64 property :timeout |
#trusted ⇒ Boolean
Returns the flag if the repo is trusted.
72 |
# File 'lib/drone/models/repo_representer.rb', line 72 property :trusted |