Class: Ecoportal::API::GraphQL::Model::Template::Helper
- Inherits:
-
Object
- Object
- Ecoportal::API::GraphQL::Model::Template::Helper
- Includes:
- Node
- Defined in:
- lib/ecoportal/api/graphql/model/template/helper.rb
Overview
A force's linked helper (addLinkedHelper). ADD-only in this design — no live
call site or schema citation for editLinkedHelper's read-side shape was available
to this session (see Read.call's header for the read-side field-name caveat), so
editing an existing helper is left unimplemented rather than guessed.
Constant Summary collapse
- PLACEHOLDER_PREFIX =
'hlp'.freeze
Instance Attribute Summary collapse
-
#content_b64 ⇒ Object
Returns the value of attribute content_b64.
-
#file_path ⇒ Object
Returns the value of attribute file_path.
-
#force ⇒ Object
readonly
Returns the value of attribute force.
-
#name ⇒ Object
Returns the value of attribute name.
-
#script ⇒ Object
Returns the value of attribute script.
-
#template ⇒ Object
readonly
Returns the value of attribute template.
Attributes included from Node
Instance Method Summary collapse
-
#initialize(template:, force:, id: nil, name: nil, file_path: nil, script: nil, content_b64: nil) ⇒ Helper
constructor
A new instance of Helper.
Methods included from Node
#new?, #placeholder, #ref, #remove!, #removed?, #resolve!
Constructor Details
#initialize(template:, force:, id: nil, name: nil, file_path: nil, script: nil, content_b64: nil) ⇒ Helper
Returns a new instance of Helper.
18 19 20 21 22 23 24 25 26 |
# File 'lib/ecoportal/api/graphql/model/template/helper.rb', line 18 def initialize(template:, force:, id: nil, name: nil, file_path: nil, script: nil, content_b64: nil) @template = template @force = force @id = id @name = name @file_path = file_path @script = script @content_b64 = content_b64 # rubocop:disable Naming/VariableNumber end |
Instance Attribute Details
#content_b64 ⇒ Object
Returns the value of attribute content_b64.
16 17 18 |
# File 'lib/ecoportal/api/graphql/model/template/helper.rb', line 16 def content_b64 @content_b64 end |
#file_path ⇒ Object
Returns the value of attribute file_path.
16 17 18 |
# File 'lib/ecoportal/api/graphql/model/template/helper.rb', line 16 def file_path @file_path end |
#force ⇒ Object (readonly)
Returns the value of attribute force.
15 16 17 |
# File 'lib/ecoportal/api/graphql/model/template/helper.rb', line 15 def force @force end |
#name ⇒ Object
Returns the value of attribute name.
16 17 18 |
# File 'lib/ecoportal/api/graphql/model/template/helper.rb', line 16 def name @name end |
#script ⇒ Object
Returns the value of attribute script.
16 17 18 |
# File 'lib/ecoportal/api/graphql/model/template/helper.rb', line 16 def script @script end |
#template ⇒ Object (readonly)
Returns the value of attribute template.
15 16 17 |
# File 'lib/ecoportal/api/graphql/model/template/helper.rb', line 15 def template @template end |