Class: InfobipApi::FieldConversionRule

Inherits:
Object
  • Object
show all
Defined in:
lib/infobipapi/objects.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json_field_name = nil) ⇒ FieldConversionRule

Returns a new instance of FieldConversionRule.



17
18
19
20
# File 'lib/infobipapi/objects.rb', line 17

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.



15
16
17
# File 'lib/infobipapi/objects.rb', line 15

def json_field_name
  @json_field_name
end

#object_field_nameObject

Returns the value of attribute object_field_name.



14
15
16
# File 'lib/infobipapi/objects.rb', line 14

def object_field_name
  @object_field_name
end

Instance Method Details

#from_json(value) ⇒ Object



22
23
24
# File 'lib/infobipapi/objects.rb', line 22

def from_json(value)
    value
end

#to_json(value) ⇒ Object



26
27
28
# File 'lib/infobipapi/objects.rb', line 26

def to_json(value)
    value
end