Class: OneApi::FieldConversionRule

Inherits:
Object
  • Object
show all
Defined in:
lib/oneapi-ruby/objects.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_nameObject

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_nameObject

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