Class: PostProxy::CardDefaultAction
- Defined in:
- lib/postproxy/types.rb
Instance Attribute Summary collapse
-
#type ⇒ Object
Returns the value of attribute type.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
Methods inherited from Model
Constructor Details
This class inherits a constructor from PostProxy::Model
Instance Attribute Details
#type ⇒ Object
Returns the value of attribute type.
468 469 470 |
# File 'lib/postproxy/types.rb', line 468 def type @type end |
#url ⇒ Object
Returns the value of attribute url.
468 469 470 |
# File 'lib/postproxy/types.rb', line 468 def url @url end |
Instance Method Details
#to_h ⇒ Object
470 471 472 |
# File 'lib/postproxy/types.rb', line 470 def to_h { type: @type, url: @url }.compact end |