Class: Saml::Kit::Bindings::Binding
- Inherits:
-
Object
- Object
- Saml::Kit::Bindings::Binding
- Defined in:
- lib/saml/kit/bindings/binding.rb
Overview
Direct Known Subclasses
Instance Attribute Summary collapse
-
#binding ⇒ Object
readonly
Returns the value of attribute binding.
-
#location ⇒ Object
readonly
Returns the value of attribute location.
Instance Method Summary collapse
- #==(other) ⇒ Object
- #binding?(other) ⇒ Boolean
- #deserialize(_params) ⇒ Object
- #eql?(other) ⇒ Boolean
- #hash ⇒ Object
-
#initialize(binding:, location:) ⇒ Binding
constructor
A new instance of Binding.
- #inspect ⇒ Object
- #serialize ⇒ Object
- #to_h ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(binding:, location:) ⇒ Binding
Returns a new instance of Binding.
8 9 10 11 |
# File 'lib/saml/kit/bindings/binding.rb', line 8 def initialize(binding:, location:) @binding = binding @location = location end |
Instance Attribute Details
#binding ⇒ Object (readonly)
Returns the value of attribute binding.
6 7 8 |
# File 'lib/saml/kit/bindings/binding.rb', line 6 def binding @binding end |
#location ⇒ Object (readonly)
Returns the value of attribute location.
6 7 8 |
# File 'lib/saml/kit/bindings/binding.rb', line 6 def location @location end |
Instance Method Details
#==(other) ⇒ Object
29 30 31 |
# File 'lib/saml/kit/bindings/binding.rb', line 29 def ==(other) to_s == other.to_s end |
#binding?(other) ⇒ Boolean
13 14 15 |
# File 'lib/saml/kit/bindings/binding.rb', line 13 def binding?(other) binding == other end |
#deserialize(_params) ⇒ Object
21 22 23 |
# File 'lib/saml/kit/bindings/binding.rb', line 21 def deserialize(_params) raise ArgumentError, 'Unsupported binding' end |
#eql?(other) ⇒ Boolean
33 34 35 |
# File 'lib/saml/kit/bindings/binding.rb', line 33 def eql?(other) self == other end |
#hash ⇒ Object
37 38 39 |
# File 'lib/saml/kit/bindings/binding.rb', line 37 def hash to_s.hash end |
#inspect ⇒ Object
45 46 47 |
# File 'lib/saml/kit/bindings/binding.rb', line 45 def inspect to_h.inspect end |
#serialize ⇒ Object
17 18 19 |
# File 'lib/saml/kit/bindings/binding.rb', line 17 def serialize(*) [] end |
#to_h ⇒ Object
25 26 27 |
# File 'lib/saml/kit/bindings/binding.rb', line 25 def to_h { binding: binding, location: location } end |
#to_s ⇒ Object
41 42 43 |
# File 'lib/saml/kit/bindings/binding.rb', line 41 def to_s "#{location}#{binding}" end |