class OneApi::LastPartOfUrlFieldConversionRule
Public Class Methods
new(json_field_name=nil)
click to toggle source
Calls superclass method
OneApi::FieldConversionRule::new
# File lib/oneapi-ruby/objects.rb, line 81 def initialize(json_field_name=nil) super(json_field_name) end
Public Instance Methods
from_json(value)
click to toggle source
# File lib/oneapi-ruby/objects.rb, line 85 def from_json(value) if ! value return nil end parts = value.split('/') parts[-1] end
to_json(value)
click to toggle source
# File lib/oneapi-ruby/objects.rb, line 95 def to_json(value) value end