Class: Jsapi::Meta::Schema::Boundary
- Inherits:
-
Object
- Object
- Jsapi::Meta::Schema::Boundary
- Defined in:
- lib/jsapi/meta/schema/boundary.rb
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
The value of the boundary.
Class Method Summary collapse
Instance Method Summary collapse
-
#exclusive? ⇒ Boolean
Returns true if the boundary is exclusive, false otherwise.
-
#initialize(value, exclusive: false) ⇒ Boundary
constructor
A new instance of Boundary.
-
#inspect ⇒ Object
:nodoc:.
Constructor Details
#initialize(value, exclusive: false) ⇒ Boundary
Returns a new instance of Boundary.
21 22 23 24 |
# File 'lib/jsapi/meta/schema/boundary.rb', line 21 def initialize(value, exclusive: false) @value = value @exclusive = exclusive end |
Instance Attribute Details
#value ⇒ Object (readonly)
The value of the boundary.
19 20 21 |
# File 'lib/jsapi/meta/schema/boundary.rb', line 19 def value @value end |
Class Method Details
Instance Method Details
#exclusive? ⇒ Boolean
Returns true if the boundary is exclusive, false otherwise.
27 28 29 |
# File 'lib/jsapi/meta/schema/boundary.rb', line 27 def exclusive? @exclusive == true end |
#inspect ⇒ Object
:nodoc:
31 32 33 |
# File 'lib/jsapi/meta/schema/boundary.rb', line 31 def inspect # :nodoc: "#<#{self.class} value: #{value}, exclusive: #{exclusive?}>" end |