Class: InfobipApi::FieldConversionRule
- Inherits:
-
Object
- Object
- InfobipApi::FieldConversionRule
- Defined in:
- lib/infobipapi/objects.rb
Direct Known Subclasses
LastPartOfUrlFieldConversionRule, ObjectArrayConversionRule, ObjectFieldConverter, PartOfUrlFieldConversionRule
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.
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_name ⇒ Object
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_name ⇒ Object
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 |