Class: PostProxy::CardDefaultAction

Inherits:
Model
  • Object
show all
Defined in:
lib/postproxy/types.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Model

#initialize

Constructor Details

This class inherits a constructor from PostProxy::Model

Instance Attribute Details

#typeObject

Returns the value of attribute type.



468
469
470
# File 'lib/postproxy/types.rb', line 468

def type
  @type
end

#urlObject

Returns the value of attribute url.



468
469
470
# File 'lib/postproxy/types.rb', line 468

def url
  @url
end

Instance Method Details

#to_hObject



470
471
472
# File 'lib/postproxy/types.rb', line 470

def to_h
  { type: @type, url: @url }.compact
end