Class: Copilot::CloudSessionOptions

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

Overview

Cloud-session creation options.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#repositoryObject

Returns the value of attribute repository

Returns:

  • (Object)

    the current value of repository



196
197
198
# File 'lib/copilot/types.rb', line 196

def repository
  @repository
end

Instance Method Details

#to_hObject



197
198
199
200
201
# File 'lib/copilot/types.rb', line 197

def to_h
  h = {}
  h[:repository] = repository.respond_to?(:to_h) ? repository.to_h : repository if repository
  h
end