Class: Codily::Elements::Condition
- Inherits:
-
ServiceBelonggingBase
- Object
- Base
- ServiceBelonggingBase
- Codily::Elements::Condition
- Defined in:
- lib/codily/elements/condition.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from ServiceBelonggingBase
#as_hash, #initialize, #key, parent_class, #parent_key, #service_id, #service_name
Methods inherited from Base
#as_dsl_hash, #as_hash, def_attr, defaults, #dsl_args, #id, #initialize, #inspect, #key, #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
#fastly_class ⇒ Object
25 26 27 |
# File 'lib/codily/elements/condition.rb', line 25 def fastly_class Fastly::Condition end |
#setup ⇒ Object
12 13 14 15 16 17 18 19 |
# File 'lib/codily/elements/condition.rb', line 12 def setup delete_if_empty! *%i( comment ) force_integer! *%i( priority ) end |
#type(obj = nil) ⇒ Object
21 22 23 |
# File 'lib/codily/elements/condition.rb', line 21 def type(obj = nil) getset :type, obj.to_s.upcase end |