Class: OFX::Data::Serialization::Registry::Entry
- Inherits:
-
Object
- Object
- OFX::Data::Serialization::Registry::Entry
- Defined in:
- lib/ofx/data/serialization/registry/entry.rb
Instance Attribute Summary collapse
-
#context_name ⇒ Object
readonly
Returns the value of attribute context_name.
-
#ofx_type ⇒ Object
readonly
Returns the value of attribute ofx_type.
-
#serializer ⇒ Object
readonly
Returns the value of attribute serializer.
Instance Method Summary collapse
-
#initialize(serializer, ofx_type, context_name = nil) ⇒ Entry
constructor
A new instance of Entry.
- #match?(ofx_type, context_name = nil) ⇒ Boolean
Constructor Details
#initialize(serializer, ofx_type, context_name = nil) ⇒ Entry
Returns a new instance of Entry.
8 9 10 11 12 |
# File 'lib/ofx/data/serialization/registry/entry.rb', line 8 def initialize(serializer, ofx_type, context_name = nil) @serializer = serializer @ofx_type = ofx_type @context_name = context_name end |
Instance Attribute Details
#context_name ⇒ Object (readonly)
Returns the value of attribute context_name.
6 7 8 |
# File 'lib/ofx/data/serialization/registry/entry.rb', line 6 def context_name @context_name end |
#ofx_type ⇒ Object (readonly)
Returns the value of attribute ofx_type.
6 7 8 |
# File 'lib/ofx/data/serialization/registry/entry.rb', line 6 def ofx_type @ofx_type end |
#serializer ⇒ Object (readonly)
Returns the value of attribute serializer.
6 7 8 |
# File 'lib/ofx/data/serialization/registry/entry.rb', line 6 def serializer @serializer end |
Instance Method Details
#match?(ofx_type, context_name = nil) ⇒ Boolean
14 15 16 |
# File 'lib/ofx/data/serialization/registry/entry.rb', line 14 def match?(ofx_type, context_name = nil) self.ofx_type == ofx_type && self.context_name == context_name end |