Class: Copilot::CloudSessionRepository

Inherits:
Struct
  • Object
show all
Defined in:
lib/copilot/types.rb

Overview

GitHub repository metadata associated with a cloud session.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#branchObject

Returns the value of attribute branch

Returns:

  • (Object)

    the current value of branch



187
188
189
# File 'lib/copilot/types.rb', line 187

def branch
  @branch
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



187
188
189
# File 'lib/copilot/types.rb', line 187

def name
  @name
end

#ownerObject

Returns the value of attribute owner

Returns:

  • (Object)

    the current value of owner



187
188
189
# File 'lib/copilot/types.rb', line 187

def owner
  @owner
end

Instance Method Details

#to_hObject



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