Class: OneApi::FieldConversionRule
- Inherits:
-
Object
- Object
- OneApi::FieldConversionRule
- Defined in:
- lib/oneapi-ruby/objects.rb
Direct Known Subclasses
LastPartOfUrlFieldConversionRule, ObjectArrayConversionRule, ObjectFieldConverter
Instance Attribute Summary collapse
-
#json_field_name ⇒ Object
Returns the value of attribute json_field_name.
-
#object_field_name ⇒ Object
Returns the value of attribute object_field_name.
Instance Method Summary collapse
- #from_json(value) ⇒ Object
-
#initialize(json_field_name = nil) ⇒ FieldConversionRule
constructor
A new instance of FieldConversionRule.
- #to_json(value) ⇒ Object
Constructor Details
#initialize(json_field_name = nil) ⇒ FieldConversionRule
Returns a new instance of FieldConversionRule.
15 16 17 18 |
# File 'lib/oneapi-ruby/objects.rb', line 15 def initialize(json_field_name=nil) @json_field_name = json_field_name @object_field_name = nil end |
Instance Attribute Details
#json_field_name ⇒ Object
Returns the value of attribute json_field_name.
13 14 15 |
# File 'lib/oneapi-ruby/objects.rb', line 13 def json_field_name @json_field_name end |
#object_field_name ⇒ Object
Returns the value of attribute object_field_name.
12 13 14 |
# File 'lib/oneapi-ruby/objects.rb', line 12 def object_field_name @object_field_name end |
Instance Method Details
#from_json(value) ⇒ Object
20 21 22 |
# File 'lib/oneapi-ruby/objects.rb', line 20 def from_json(value) value end |
#to_json(value) ⇒ Object
24 25 26 |
# File 'lib/oneapi-ruby/objects.rb', line 24 def to_json(value) value end |