Class: Bitrise::App
- Inherits:
-
Object
- Object
- Bitrise::App
- Defined in:
- lib/bitrise/app.rb
Instance Attribute Summary collapse
-
#avatar_url ⇒ Object
readonly
Returns the value of attribute avatar_url.
-
#is_disabled ⇒ Object
readonly
Returns the value of attribute is_disabled.
-
#is_github_checks_enabled ⇒ Object
readonly
Returns the value of attribute is_github_checks_enabled.
-
#is_public ⇒ Object
readonly
Returns the value of attribute is_public.
-
#owner ⇒ Object
readonly
Returns the value of attribute owner.
-
#project_type ⇒ Object
readonly
Returns the value of attribute project_type.
-
#provider ⇒ Object
readonly
Returns the value of attribute provider.
-
#repo_owner ⇒ Object
readonly
Returns the value of attribute repo_owner.
-
#repo_slug ⇒ Object
readonly
Returns the value of attribute repo_slug.
-
#repo_url ⇒ Object
readonly
Returns the value of attribute repo_url.
-
#slug ⇒ Object
readonly
Returns the value of attribute slug.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ App
constructor
A new instance of App.
Constructor Details
#initialize(attrs = {}) ⇒ App
Returns a new instance of App.
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'lib/bitrise/app.rb', line 18 def initialize(attrs = {}) @slug = attrs['slug'] @title = attrs['title'] @project_type = attrs['project_type'] @provider = attrs['provider'] @repo_owner = attrs['repo_owner'] @repo_url = attrs['repo_url'] @repo_slug = attrs['repo_slug'] @is_disabled = attrs['is_disabled'] @status = attrs['status'] @is_public = attrs['is_public'] @is_github_checks_enabled = attrs['is_github_checks_enabled'] @owner = AppOwner.new(attrs['owner']) @avatar_url = attrs['avatar_url'] end |
Instance Attribute Details
#avatar_url ⇒ Object (readonly)
Returns the value of attribute avatar_url.
16 17 18 |
# File 'lib/bitrise/app.rb', line 16 def avatar_url @avatar_url end |
#is_disabled ⇒ Object (readonly)
Returns the value of attribute is_disabled.
16 17 18 |
# File 'lib/bitrise/app.rb', line 16 def is_disabled @is_disabled end |
#is_github_checks_enabled ⇒ Object (readonly)
Returns the value of attribute is_github_checks_enabled.
16 17 18 |
# File 'lib/bitrise/app.rb', line 16 def is_github_checks_enabled @is_github_checks_enabled end |
#is_public ⇒ Object (readonly)
Returns the value of attribute is_public.
16 17 18 |
# File 'lib/bitrise/app.rb', line 16 def is_public @is_public end |
#owner ⇒ Object (readonly)
Returns the value of attribute owner.
16 17 18 |
# File 'lib/bitrise/app.rb', line 16 def owner @owner end |
#project_type ⇒ Object (readonly)
Returns the value of attribute project_type.
16 17 18 |
# File 'lib/bitrise/app.rb', line 16 def project_type @project_type end |
#provider ⇒ Object (readonly)
Returns the value of attribute provider.
16 17 18 |
# File 'lib/bitrise/app.rb', line 16 def provider @provider end |
#repo_owner ⇒ Object (readonly)
Returns the value of attribute repo_owner.
16 17 18 |
# File 'lib/bitrise/app.rb', line 16 def repo_owner @repo_owner end |
#repo_slug ⇒ Object (readonly)
Returns the value of attribute repo_slug.
16 17 18 |
# File 'lib/bitrise/app.rb', line 16 def repo_slug @repo_slug end |
#repo_url ⇒ Object (readonly)
Returns the value of attribute repo_url.
16 17 18 |
# File 'lib/bitrise/app.rb', line 16 def repo_url @repo_url end |
#slug ⇒ Object (readonly)
Returns the value of attribute slug.
16 17 18 |
# File 'lib/bitrise/app.rb', line 16 def slug @slug end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
16 17 18 |
# File 'lib/bitrise/app.rb', line 16 def status @status end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
16 17 18 |
# File 'lib/bitrise/app.rb', line 16 def title @title end |