Class: Preact::ActionLink
- Defined in:
- lib/preact/objects/action_link.rb
Instance Attribute Summary collapse
-
#href ⇒ Object
Returns the value of attribute href.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
Methods inherited from ApiObject
Constructor Details
This class inherits a constructor from Preact::ApiObject
Instance Attribute Details
#href ⇒ Object
Returns the value of attribute href.
4 5 6 |
# File 'lib/preact/objects/action_link.rb', line 4 def href @href end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/preact/objects/action_link.rb', line 4 def name @name end |
Instance Method Details
#as_json ⇒ Object
6 7 8 9 10 11 |
# File 'lib/preact/objects/action_link.rb', line 6 def as_json { :name => self.name, :href => self.href } end |