Class: OFX::Data::Serialization::Registry::Entry

Inherits:
Object
  • Object
show all
Defined in:
lib/ofx/data/serialization/registry/entry.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_nameObject (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_typeObject (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

#serializerObject (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

Returns:

  • (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