Class: Halbuilder::Configuration
- Inherits:
-
Object
- Object
- Halbuilder::Configuration
- Defined in:
- lib/halbuilder/configuration.rb
Instance Attribute Summary collapse
-
#embed_key ⇒ Object
readonly
Returns the value of attribute embed_key.
-
#key_format ⇒ Object
Returns the value of attribute key_format.
-
#link_format ⇒ Object
Returns the value of attribute link_format.
-
#link_key ⇒ Object
readonly
Returns the value of attribute link_key.
-
#link_namespace ⇒ Object
Returns the value of attribute link_namespace.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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" = "_embedded" @key_format = :camelize_lower @link_namespace = nil @link_format = :dasherize end |
Instance Attribute Details
#embed_key ⇒ Object (readonly)
Returns the value of attribute embed_key.
7 8 9 |
# File 'lib/halbuilder/configuration.rb', line 7 def end |
#key_format ⇒ Object
Returns the value of attribute key_format.
8 9 10 |
# File 'lib/halbuilder/configuration.rb', line 8 def key_format @key_format end |
#link_format ⇒ Object
Returns the value of attribute link_format.
8 9 10 |
# File 'lib/halbuilder/configuration.rb', line 8 def link_format @link_format end |
#link_key ⇒ Object (readonly)
Returns the value of attribute link_key.
7 8 9 |
# File 'lib/halbuilder/configuration.rb', line 7 def link_key @link_key end |
#link_namespace ⇒ Object
Returns the value of attribute link_namespace.
8 9 10 |
# File 'lib/halbuilder/configuration.rb', line 8 def link_namespace @link_namespace end |