Class: ConvenientService::Config::Entities::Option
- Inherits:
-
Object
- Object
- ConvenientService::Config::Entities::Option
- Defined in:
- lib/convenient_service/config/entities/option.rb
Overview
Instance Attribute Summary collapse
- #details ⇒ Object (also: #data) readonly
- #name ⇒ Object readonly
Instance Method Summary collapse
- #==(other) ⇒ Boolean?
- #enabled? ⇒ Boolean
- #initialize(name:, enabled: false, **details) ⇒ void constructor
Constructor Details
Instance Attribute Details
#details ⇒ Object (readonly) Also known as: data
22 23 24 |
# File 'lib/convenient_service/config/entities/option.rb', line 22 def details @details end |
#name ⇒ Object (readonly)
16 17 18 |
# File 'lib/convenient_service/config/entities/option.rb', line 16 def name @name end |
Instance Method Details
#==(other) ⇒ Boolean?
52 53 54 55 56 57 58 59 60 |
# File 'lib/convenient_service/config/entities/option.rb', line 52 def ==(other) return unless other.instance_of?(self.class) return false if name != other.name return false if enabled != other.enabled return false if details != other.details true end |
#enabled? ⇒ Boolean
44 45 46 |
# File 'lib/convenient_service/config/entities/option.rb', line 44 def enabled? enabled end |