Class: Inferno::Web::Serializers::Serializer
- Inherits:
-
Blueprinter::Base
- Object
- Blueprinter::Base
- Inferno::Web::Serializers::Serializer
- Defined in:
- lib/inferno/apps/web/serializers/serializer.rb
Direct Known Subclasses
Header, Input, Message, Preset, Request, Result, SessionData, SuiteOption, Test, TestGroup, TestRun, TestSession, TestSuite
Class Method Summary collapse
Class Method Details
.field_present?(field_name, result, options) ⇒ Boolean
8 9 10 11 12 13 14 15 |
# File 'lib/inferno/apps/web/serializers/serializer.rb', line 8 def self.field_present?(field_name, result, ) name = [:name] || field_name if result.respond_to?(:[]) result[name].present? else result.send(name).present? end end |