Class: Halbuilder::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/halbuilder/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



10
11
12
13
14
15
16
# File 'lib/halbuilder/configuration.rb', line 10

def initialize
  @link_key = "_links"
  @embed_key = "_embedded"
  @key_format = :camelize_lower
  @link_namespace = nil
  @link_format = :dasherize
end

Instance Attribute Details

#embed_keyObject (readonly)

Returns the value of attribute embed_key.



7
8
9
# File 'lib/halbuilder/configuration.rb', line 7

def embed_key
  @embed_key
end

#key_formatObject

Returns the value of attribute key_format.



8
9
10
# File 'lib/halbuilder/configuration.rb', line 8

def key_format
  @key_format
end

Returns the value of attribute link_format.



8
9
10
# File 'lib/halbuilder/configuration.rb', line 8

def link_format
  @link_format
end

Returns the value of attribute link_key.



7
8
9
# File 'lib/halbuilder/configuration.rb', line 7

def link_key
  @link_key
end

Returns the value of attribute link_namespace.



8
9
10
# File 'lib/halbuilder/configuration.rb', line 8

def link_namespace
  @link_namespace
end