Sha256: 1e18016a224a0b277d1c549805b100c35ee474e85a8ddf4adc18f69a2bc8aef0

Contents?: true

Size: 158 Bytes

Versions: 2

Compression:

Stored size: 158 Bytes

Contents

module FunWithJsonApi
  module Attributes
    class StringAttribute < Attribute
      def call(value)
        value.to_s if value
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fun_with_json_api-0.0.2 lib/fun_with_json_api/attributes/string_attribute.rb
fun_with_json_api-0.0.1 lib/fun_with_json_api/attributes/string_attribute.rb