Class: ForestLiana::Model::Action

Inherits:
Object
  • Object
show all
Extended by:
ActiveModel::Naming
Includes:
ActiveModel::Conversion, ActiveModel::Serialization, ActiveModel::Validations
Defined in:
app/models/forest_liana/model/action.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ Action

Returns a new instance of Action.



9
10
11
12
13
# File 'app/models/forest_liana/model/action.rb', line 9

def initialize(attributes = {})
  attributes.each do |name, value|
    send("#{name}=", value)
  end
end

Instance Attribute Details

#endpointObject

Returns the value of attribute endpoint.



7
8
9
# File 'app/models/forest_liana/model/action.rb', line 7

def endpoint
  @endpoint
end

#fieldsObject

Returns the value of attribute fields.



7
8
9
# File 'app/models/forest_liana/model/action.rb', line 7

def fields
  @fields
end

#http_methodObject

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

#nameObject

Returns the value of attribute name.



7
8
9
# File 'app/models/forest_liana/model/action.rb', line 7

def name
  @name
end

Instance Method Details

#idObject



19
20
21
# File 'app/models/forest_liana/model/action.rb', line 19

def id
  name
end

#persisted?Boolean

Returns:

  • (Boolean)


15
16
17
# File 'app/models/forest_liana/model/action.rb', line 15

def persisted?
  false
end