class GMO::PG::Payload::TypecastableInteger
Public Instance Methods
to_attribute()
click to toggle source
# File lib/gmo-pg/http_resource/payload/typecast.rb, line 51 def to_attribute @value.respond_to?(:to_i) ? @value.to_i : @value end
to_payload()
click to toggle source
# File lib/gmo-pg/http_resource/payload/typecast.rb, line 55 def to_payload to_attribute.to_s end