Class: Pb::Serializer::Configuration
- Inherits:
-
Object
- Object
- Pb::Serializer::Configuration
- Defined in:
- lib/pb/serializer.rb
Instance Attribute Summary collapse
- #logger ⇒ Logger
-
#missing_field_behavior ⇒ Object
Returns the value of attribute missing_field_behavior.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
28 29 30 31 |
# File 'lib/pb/serializer.rb', line 28 def initialize self.missing_field_behavior = :raise self.logger = Logger.new(STDOUT) end |
Instance Attribute Details
#logger ⇒ Logger
23 24 25 |
# File 'lib/pb/serializer.rb', line 23 def logger @logger end |
#missing_field_behavior ⇒ Object
Returns the value of attribute missing_field_behavior.
26 27 28 |
# File 'lib/pb/serializer.rb', line 26 def missing_field_behavior @missing_field_behavior end |