Class: ForestLiana::Model::Action
- Inherits:
-
Object
- Object
- ForestLiana::Model::Action
- Extended by:
- ActiveModel::Naming
- Includes:
- ActiveModel::Conversion, ActiveModel::Serialization, ActiveModel::Validations
- Defined in:
- app/models/forest_liana/model/action.rb
Instance Attribute Summary collapse
-
#download ⇒ Object
Returns the value of attribute download.
-
#endpoint ⇒ Object
Returns the value of attribute endpoint.
-
#fields ⇒ Object
Returns the value of attribute fields.
-
#global ⇒ Object
Returns the value of attribute global.
-
#http_method ⇒ Object
Returns the value of attribute http_method.
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
-
#redirect ⇒ Object
Returns the value of attribute redirect.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Action
constructor
A new instance of Action.
- #persisted? ⇒ Boolean
Constructor Details
#initialize(attributes = {}) ⇒ Action
Returns a new instance of Action.
10 11 12 13 14 |
# File 'app/models/forest_liana/model/action.rb', line 10 def initialize(attributes = {}) attributes.each do |name, value| send("#{name}=", value) end end |
Instance Attribute Details
#download ⇒ Object
Returns the value of attribute download.
7 8 9 |
# File 'app/models/forest_liana/model/action.rb', line 7 def download @download end |
#endpoint ⇒ Object
Returns the value of attribute endpoint.
7 8 9 |
# File 'app/models/forest_liana/model/action.rb', line 7 def endpoint @endpoint end |
#fields ⇒ Object
Returns the value of attribute fields.
7 8 9 |
# File 'app/models/forest_liana/model/action.rb', line 7 def fields @fields end |
#global ⇒ Object
Returns the value of attribute global.
7 8 9 |
# File 'app/models/forest_liana/model/action.rb', line 7 def global @global end |
#http_method ⇒ Object
Returns the value of attribute http_method.
7 8 9 |
# File 'app/models/forest_liana/model/action.rb', line 7 def http_method @http_method end |
#id ⇒ Object
Returns the value of attribute id.
7 8 9 |
# File 'app/models/forest_liana/model/action.rb', line 7 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
7 8 9 |
# File 'app/models/forest_liana/model/action.rb', line 7 def name @name end |
#redirect ⇒ Object
Returns the value of attribute redirect.
7 8 9 |
# File 'app/models/forest_liana/model/action.rb', line 7 def redirect @redirect end |
Instance Method Details
#persisted? ⇒ Boolean
16 17 18 |
# File 'app/models/forest_liana/model/action.rb', line 16 def persisted? false end |