Class: Ecoportal::API::GraphQL::Input::VariableBinding
- Inherits:
-
Object
- Object
- Ecoportal::API::GraphQL::Input::VariableBinding
- Defined in:
- lib/ecoportal/api/graphql/input/variable_binding.rb
Instance Attribute Summary collapse
-
#data_field_id ⇒ Object
readonly
Returns the value of attribute data_field_id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name:, data_field_id:) ⇒ VariableBinding
constructor
A new instance of VariableBinding.
- #to_h ⇒ Object
Constructor Details
#initialize(name:, data_field_id:) ⇒ VariableBinding
Returns a new instance of VariableBinding.
8 9 10 11 |
# File 'lib/ecoportal/api/graphql/input/variable_binding.rb', line 8 def initialize(name:, data_field_id:) @name = name @data_field_id = data_field_id end |
Instance Attribute Details
#data_field_id ⇒ Object (readonly)
Returns the value of attribute data_field_id.
6 7 8 |
# File 'lib/ecoportal/api/graphql/input/variable_binding.rb', line 6 def data_field_id @data_field_id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
6 7 8 |
# File 'lib/ecoportal/api/graphql/input/variable_binding.rb', line 6 def name @name end |
Instance Method Details
#to_h ⇒ Object
13 14 15 |
# File 'lib/ecoportal/api/graphql/input/variable_binding.rb', line 13 def to_h { name: name, dataFieldId: data_field_id } end |