Class: Appwrite::Models::FrameworkAdapter
- Inherits:
-
Object
- Object
- Appwrite::Models::FrameworkAdapter
- Defined in:
- lib/appwrite/models/framework_adapter.rb
Instance Attribute Summary collapse
-
#build_command ⇒ Object
readonly
Returns the value of attribute build_command.
-
#fallback_file ⇒ Object
readonly
Returns the value of attribute fallback_file.
-
#install_command ⇒ Object
readonly
Returns the value of attribute install_command.
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#output_directory ⇒ Object
readonly
Returns the value of attribute output_directory.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(key:, install_command:, build_command:, output_directory:, fallback_file:) ⇒ FrameworkAdapter
constructor
A new instance of FrameworkAdapter.
- #to_map ⇒ Object
Constructor Details
#initialize(key:, install_command:, build_command:, output_directory:, fallback_file:) ⇒ FrameworkAdapter
Returns a new instance of FrameworkAdapter.
12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/appwrite/models/framework_adapter.rb', line 12 def initialize( key:, install_command:, build_command:, output_directory:, fallback_file: ) @key = key @install_command = install_command @build_command = build_command @output_directory = output_directory @fallback_file = fallback_file end |
Instance Attribute Details
#build_command ⇒ Object (readonly)
Returns the value of attribute build_command.
8 9 10 |
# File 'lib/appwrite/models/framework_adapter.rb', line 8 def build_command @build_command end |
#fallback_file ⇒ Object (readonly)
Returns the value of attribute fallback_file.
10 11 12 |
# File 'lib/appwrite/models/framework_adapter.rb', line 10 def fallback_file @fallback_file end |
#install_command ⇒ Object (readonly)
Returns the value of attribute install_command.
7 8 9 |
# File 'lib/appwrite/models/framework_adapter.rb', line 7 def install_command @install_command end |
#key ⇒ Object (readonly)
Returns the value of attribute key.
6 7 8 |
# File 'lib/appwrite/models/framework_adapter.rb', line 6 def key @key end |
#output_directory ⇒ Object (readonly)
Returns the value of attribute output_directory.
9 10 11 |
# File 'lib/appwrite/models/framework_adapter.rb', line 9 def output_directory @output_directory end |
Class Method Details
.from(map:) ⇒ Object
26 27 28 29 30 31 32 33 34 |
# File 'lib/appwrite/models/framework_adapter.rb', line 26 def self.from(map:) FrameworkAdapter.new( key: map["key"], install_command: map["installCommand"], build_command: map["buildCommand"], output_directory: map["outputDirectory"], fallback_file: map["fallbackFile"] ) end |
Instance Method Details
#to_map ⇒ Object
36 37 38 39 40 41 42 43 44 |
# File 'lib/appwrite/models/framework_adapter.rb', line 36 def to_map { "key": @key, "installCommand": @install_command, "buildCommand": @build_command, "outputDirectory": @output_directory, "fallbackFile": @fallback_file } end |