Class: Codily::Elements::Settings

Inherits:
ServiceBelonggingBase show all
Defined in:
lib/codily/elements/settings.rb

Instance Attribute Summary

Attributes inherited from Base

#fastly_obj, #root

Instance Method Summary collapse

Methods inherited from ServiceBelonggingBase

#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

Constructor Details

This class inherits a constructor from Codily::Elements::ServiceBelonggingBase

Instance Method Details

#as_dsl_hashObject



14
15
16
# File 'lib/codily/elements/settings.rb', line 14

def as_dsl_hash
  {}
end

#dsl_argsObject



10
11
12
# File 'lib/codily/elements/settings.rb', line 10

def dsl_args
  [as_hash]
end

#fastly_classObject



22
23
24
# File 'lib/codily/elements/settings.rb', line 22

def fastly_class
  Fastly::Settings
end

#keyObject



18
19
20
# File 'lib/codily/elements/settings.rb', line 18

def key
  service_name
end

#setupObject



7
8
9
# File 'lib/codily/elements/settings.rb', line 7

def setup
  @hash = Utils.symbolize_keys(@hash)
end