Class: Preact::ActionLink

Inherits:
ApiObject show all
Defined in:
lib/preact/objects/action_link.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from ApiObject

#initialize

Constructor Details

This class inherits a constructor from Preact::ApiObject

Instance Attribute Details

#hrefObject

Returns the value of attribute href.



4
5
6
# File 'lib/preact/objects/action_link.rb', line 4

def href
  @href
end

#nameObject

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_jsonObject



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