Class: Gear

Inherits:
ApplicationRecord show all
Defined in:
app/models/gear.rb

Overview

Gear is equipment that the Hunter can use. It is provided by the Playbook.

Schema Information

Table name: gears

Indexes

index_gears_on_playbook_id  (playbook_id)

Foreign Keys

fk_rails_...  (playbook_id => playbooks.id)

Instance Attribute Summary collapse

Method Summary

Methods inherited from ApplicationRecord

policy_class

Instance Attribute Details

#armorInteger

Returns:

  • (Integer)

34
35
36
37
38
# File 'app/models/gear.rb', line 34

class Gear < ApplicationRecord
  belongs_to :playbook
  validates :name, presence: true
  acts_as_taggable
end

#created_atTime

Returns:

  • (Time)

34
35
36
37
38
# File 'app/models/gear.rb', line 34

class Gear < ApplicationRecord
  belongs_to :playbook
  validates :name, presence: true
  acts_as_taggable
end

#descriptionString

Returns:

  • (String)

34
35
36
37
38
# File 'app/models/gear.rb', line 34

class Gear < ApplicationRecord
  belongs_to :playbook
  validates :name, presence: true
  acts_as_taggable
end

#harmInteger

Returns:

  • (Integer)

34
35
36
37
38
# File 'app/models/gear.rb', line 34

class Gear < ApplicationRecord
  belongs_to :playbook
  validates :name, presence: true
  acts_as_taggable
end

#idObject

Returns [].

Returns:


34
35
36
37
38
# File 'app/models/gear.rb', line 34

class Gear < ApplicationRecord
  belongs_to :playbook
  validates :name, presence: true
  acts_as_taggable
end

#nameString

Returns:

  • (String)

34
35
36
37
38
# File 'app/models/gear.rb', line 34

class Gear < ApplicationRecord
  belongs_to :playbook
  validates :name, presence: true
  acts_as_taggable
end

#playbook_idObject

Returns [].

Returns:


34
35
36
37
38
# File 'app/models/gear.rb', line 34

class Gear < ApplicationRecord
  belongs_to :playbook
  validates :name, presence: true
  acts_as_taggable
end

#updated_atTime

Returns:

  • (Time)

34
35
36
37
38
# File 'app/models/gear.rb', line 34

class Gear < ApplicationRecord
  belongs_to :playbook
  validates :name, presence: true
  acts_as_taggable
end