Class: Copilot::CanvasOpenResponse

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

Overview

Response returned when opening a canvas.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#statusObject

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



101
102
103
# File 'lib/copilot/types.rb', line 101

def status
  @status
end

#titleObject

Returns the value of attribute title

Returns:

  • (Object)

    the current value of title



101
102
103
# File 'lib/copilot/types.rb', line 101

def title
  @title
end

#urlObject

Returns the value of attribute url

Returns:

  • (Object)

    the current value of url



101
102
103
# File 'lib/copilot/types.rb', line 101

def url
  @url
end

Instance Method Details

#to_hObject



102
103
104
105
106
107
108
# File 'lib/copilot/types.rb', line 102

def to_h
  h = {}
  h[:url] = url if url
  h[:title] = title if title
  h[:status] = status if status
  h
end