Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
pennant
main
Pennant
Actor
Adapter
Configuration
Feature
MemoryAdapter
PercentageOfTimeFeature
RedisAdapter
InvalidSetting
PercentageOfTime
ToggleFeature
Web
Redis
Commands
Built with Crystal 1.9.2
2023-10-07 17:01:50 UTC
struct
Pennant::PercentageOfTimeFeature
Pennant::PercentageOfTimeFeature
Struct
Value
Object
Included Modules
Pennant::Feature
Defined in:
pennant.cr
Constructors
.new
(name : String, percentage_of_time : Float64)
Instance Method Summary
#enabled?
: Bool
#percentage_of_time
: Float64
Instance methods inherited from module
Pennant::Feature
name : String
name
Constructor Detail
def self.
new
(name : String, percentage_of_time : Float64)
#
[
View source
]
Instance Method Detail
def
enabled?
: Bool
#
[
View source
]
def
percentage_of_time
: Float64
#
[
View source
]