Class: Codily::Elements::Settings
Instance Attribute Summary
Attributes inherited from Base
#fastly_obj, #root
Instance Method Summary
collapse
#as_hash, #initialize, parent_class, #parent_key, #service_id, #service_name
Methods inherited from Base
#as_hash, def_attr, defaults, #id, #initialize, #inspect, #name, name_for_attr, #parent, #parent_class, parent_class, #parent_key, #parents, path
Instance Method Details
#as_dsl_hash ⇒ Object
14
15
16
|
# File 'lib/codily/elements/settings.rb', line 14
def as_dsl_hash
{}
end
|
#dsl_args ⇒ Object
10
11
12
|
# File 'lib/codily/elements/settings.rb', line 10
def dsl_args
[as_hash]
end
|
#fastly_class ⇒ Object
22
23
24
|
# File 'lib/codily/elements/settings.rb', line 22
def fastly_class
Fastly::Settings
end
|
#key ⇒ Object
18
19
20
|
# File 'lib/codily/elements/settings.rb', line 18
def key
service_name
end
|
#setup ⇒ Object
7
8
9
|
# File 'lib/codily/elements/settings.rb', line 7
def setup
@hash = Utils.symbolize_keys(@hash)
end
|