module FTL::Serializer::DSL::Format

Attributes

root_name[R]

Public Instance Methods

camel_case?() click to toggle source
# File lib/ftl/serializer/dsl/format.rb, line 19
def camel_case?
  hash_format == :camel
end
format(format_type) click to toggle source
# File lib/ftl/serializer/dsl/format.rb, line 11
def format(format_type)
  @hash_format = format_type
end
hash_format() click to toggle source
# File lib/ftl/serializer/dsl/format.rb, line 15
def hash_format
  @hash_format ||= :underscore
end
root(root_name) click to toggle source
# File lib/ftl/serializer/dsl/format.rb, line 7
def root(root_name)
  @root_name = root_name
end