Class: Copilot::CanvasOpenResponse
- Inherits:
-
Struct
- Object
- Struct
- Copilot::CanvasOpenResponse
- Defined in:
- lib/copilot/types.rb
Overview
Response returned when opening a canvas.
Instance Attribute Summary collapse
-
#status ⇒ Object
Returns the value of attribute status.
-
#title ⇒ Object
Returns the value of attribute title.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
Instance Attribute Details
#status ⇒ Object
Returns the value of attribute status
101 102 103 |
# File 'lib/copilot/types.rb', line 101 def status @status end |
#title ⇒ Object
Returns the value of attribute title
101 102 103 |
# File 'lib/copilot/types.rb', line 101 def title @title end |
#url ⇒ Object
Returns the value of attribute url
101 102 103 |
# File 'lib/copilot/types.rb', line 101 def url @url end |
Instance Method Details
#to_h ⇒ Object
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 |