Class: Ghub::Models::Application
- Inherits:
-
Struct
- Object
- Struct
- Ghub::Models::Application
- Defined in:
- lib/ghub/models/application.rb
Overview
Defines an application.
Instance Attribute Summary collapse
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#description ⇒ Object
Returns the value of attribute description.
-
#events ⇒ Object
Returns the value of attribute events.
-
#external_url ⇒ Object
Returns the value of attribute external_url.
-
#html_url ⇒ Object
Returns the value of attribute html_url.
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
-
#node_id ⇒ Object
Returns the value of attribute node_id.
-
#owner ⇒ Object
Returns the value of attribute owner.
-
#permissions ⇒ Object
Returns the value of attribute permissions.
-
#slug ⇒ Object
Returns the value of attribute slug.
-
#updated_at ⇒ Object
Returns the value of attribute updated_at.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ Application
constructor
A new instance of Application.
Constructor Details
#initialize ⇒ Application
Returns a new instance of Application.
29 30 31 32 |
# File 'lib/ghub/models/application.rb', line 29 def initialize(**) super freeze end |
Instance Attribute Details
#created_at ⇒ Object
Returns the value of attribute created_at
6 7 8 |
# File 'lib/ghub/models/application.rb', line 6 def created_at @created_at end |
#description ⇒ Object
Returns the value of attribute description
6 7 8 |
# File 'lib/ghub/models/application.rb', line 6 def description @description end |
#events ⇒ Object
Returns the value of attribute events
6 7 8 |
# File 'lib/ghub/models/application.rb', line 6 def events @events end |
#external_url ⇒ Object
Returns the value of attribute external_url
6 7 8 |
# File 'lib/ghub/models/application.rb', line 6 def external_url @external_url end |
#html_url ⇒ Object
Returns the value of attribute html_url
6 7 8 |
# File 'lib/ghub/models/application.rb', line 6 def html_url @html_url end |
#id ⇒ Object
Returns the value of attribute id
6 7 8 |
# File 'lib/ghub/models/application.rb', line 6 def id @id end |
#name ⇒ Object
Returns the value of attribute name
6 7 8 |
# File 'lib/ghub/models/application.rb', line 6 def name @name end |
#node_id ⇒ Object
Returns the value of attribute node_id
6 7 8 |
# File 'lib/ghub/models/application.rb', line 6 def node_id @node_id end |
#owner ⇒ Object
Returns the value of attribute owner
6 7 8 |
# File 'lib/ghub/models/application.rb', line 6 def owner @owner end |
#permissions ⇒ Object
Returns the value of attribute permissions
6 7 8 |
# File 'lib/ghub/models/application.rb', line 6 def @permissions end |
#slug ⇒ Object
Returns the value of attribute slug
6 7 8 |
# File 'lib/ghub/models/application.rb', line 6 def slug @slug end |
#updated_at ⇒ Object
Returns the value of attribute updated_at
6 7 8 |
# File 'lib/ghub/models/application.rb', line 6 def updated_at @updated_at end |
Class Method Details
.for(**attributes) ⇒ Object
20 21 22 23 24 25 26 27 |
# File 'lib/ghub/models/application.rb', line 20 def self.for(**attributes) new( **attributes.merge!( owner: Owner[**attributes[:owner]], permissions: Permissions::Branch[**attributes[:permissions]] ) ) end |