lib/grape-apiary/config.rb in grape-apiary-0.2.0 vs lib/grape-apiary/config.rb in grape-apiary-1.0.0
- old
+ new
@@ -1,17 +1,17 @@
module GrapeApiary
class Config
- SETTINGS = [
- :host,
- :name,
- :description,
- :request_headers,
- :response_headers,
- :example_id_type,
- :resource_exclusion,
- :include_root
- ].freeze
+ SETTINGS = %i(
+ host
+ name
+ description
+ request_headers
+ response_headers
+ example_id_type
+ resource_exclusion
+ include_root
+ ).freeze
class << self
attr_accessor(*SETTINGS)
def request_headers
@@ -29,10 +29,10 @@
def include_root
@include_root ||= false
end
def supported_id_types
- [:integer, :uuid, :bson]
+ %i(integer uuid bson)
end
def example_id_type=(value)
raise UnsupportedIDType unless supported_id_types.include?(value)