Class: Swarker::Serializers::ServiceSerializer
- Inherits:
-
Object
- Object
- Swarker::Serializers::ServiceSerializer
- Defined in:
- lib/swarker/serializers/service_serializer.rb
Instance Attribute Summary collapse
-
#schema ⇒ Object
readonly
Returns the value of attribute schema.
Instance Method Summary collapse
-
#initialize(service) ⇒ ServiceSerializer
constructor
A new instance of ServiceSerializer.
Constructor Details
#initialize(service) ⇒ ServiceSerializer
Returns a new instance of ServiceSerializer.
6 7 8 9 |
# File 'lib/swarker/serializers/service_serializer.rb', line 6 def initialize(service) @service = service @schema = build_hash end |
Instance Attribute Details
#schema ⇒ Object (readonly)
Returns the value of attribute schema.
4 5 6 |
# File 'lib/swarker/serializers/service_serializer.rb', line 4 def schema @schema end |