Class: Recurly::Schema::BooleanAttribute
- Defined in:
- lib/recurly/schema.rb
Constant Summary
Constants inherited from Attribute
Instance Attribute Summary
Attributes inherited from Attribute
Instance Method Summary collapse
Methods inherited from Attribute
build, #cast, #initialize, #recurly_class
Constructor Details
This class inherits a constructor from Recurly::Schema::Attribute
Instance Method Details
#is_valid?(value) ⇒ Boolean
106 107 108 |
# File 'lib/recurly/schema.rb', line 106 def is_valid?(value) [true, false].include? value end |