Class: Frap::CreateResource
- Inherits:
-
Object
- Object
- Frap::CreateResource
- Defined in:
- lib/frap/create_resource.rb
Instance Attribute Summary collapse
-
#attributes ⇒ Object
Returns the value of attribute attributes.
-
#name ⇒ Object
Returns the value of attribute name.
-
#options ⇒ Object
Returns the value of attribute options.
Instance Method Summary collapse
- #create_resource ⇒ Object
-
#initialize(name, options) ⇒ CreateResource
constructor
A new instance of CreateResource.
Constructor Details
#initialize(name, options) ⇒ CreateResource
Returns a new instance of CreateResource.
7 8 9 10 |
# File 'lib/frap/create_resource.rb', line 7 def initialize(name, ) @name = name @options = end |
Instance Attribute Details
#attributes ⇒ Object
Returns the value of attribute attributes.
5 6 7 |
# File 'lib/frap/create_resource.rb', line 5 def attributes @attributes end |
#name ⇒ Object
Returns the value of attribute name.
5 6 7 |
# File 'lib/frap/create_resource.rb', line 5 def name @name end |
#options ⇒ Object
Returns the value of attribute options.
5 6 7 |
# File 'lib/frap/create_resource.rb', line 5 def @options end |
Instance Method Details
#create_resource ⇒ Object
12 13 14 15 |
# File 'lib/frap/create_resource.rb', line 12 def create_resource generate_rails_resource if ['rails'] generate_flutter_resource if ['flutter'] end |