Class: Copilot::CloudSessionRepository
- Inherits:
-
Struct
- Object
- Struct
- Copilot::CloudSessionRepository
- Defined in:
- lib/copilot/types.rb
Overview
GitHub repository metadata associated with a cloud session.
Instance Attribute Summary collapse
-
#branch ⇒ Object
Returns the value of attribute branch.
-
#name ⇒ Object
Returns the value of attribute name.
-
#owner ⇒ Object
Returns the value of attribute owner.
Instance Method Summary collapse
Instance Attribute Details
#branch ⇒ Object
Returns the value of attribute branch
187 188 189 |
# File 'lib/copilot/types.rb', line 187 def branch @branch end |
#name ⇒ Object
Returns the value of attribute name
187 188 189 |
# File 'lib/copilot/types.rb', line 187 def name @name end |
#owner ⇒ Object
Returns the value of attribute owner
187 188 189 |
# File 'lib/copilot/types.rb', line 187 def owner @owner end |
Instance Method Details
#to_h ⇒ Object
188 189 190 191 192 |
# File 'lib/copilot/types.rb', line 188 def to_h h = { owner: owner, name: name } h[:branch] = branch if branch h end |