Class: RailsAsyncMigrations::Migration::MethodAdded
- Inherits:
-
Object
- Object
- RailsAsyncMigrations::Migration::MethodAdded
- Defined in:
- lib/rails_async_migrations/migration/method_added.rb
Instance Attribute Summary collapse
-
#method_name ⇒ Object
readonly
Returns the value of attribute method_name.
-
#resource_class ⇒ Object
readonly
Returns the value of attribute resource_class.
Instance Method Summary collapse
-
#initialize(resource_class, method_name) ⇒ MethodAdded
constructor
A new instance of MethodAdded.
- #perform ⇒ Object
Constructor Details
#initialize(resource_class, method_name) ⇒ MethodAdded
8 9 10 11 |
# File 'lib/rails_async_migrations/migration/method_added.rb', line 8 def initialize(resource_class, method_name) @resource_class = resource_class @method_name = method_name end |
Instance Attribute Details
#method_name ⇒ Object (readonly)
Returns the value of attribute method_name.
6 7 8 |
# File 'lib/rails_async_migrations/migration/method_added.rb', line 6 def method_name @method_name end |
#resource_class ⇒ Object (readonly)
Returns the value of attribute resource_class.
6 7 8 |
# File 'lib/rails_async_migrations/migration/method_added.rb', line 6 def resource_class @resource_class end |
Instance Method Details
#perform ⇒ Object
13 14 15 |
# File 'lib/rails_async_migrations/migration/method_added.rb', line 13 def perform lock_and_overwrite end |