Class: Swarker::Serializers::ServiceSerializer

Inherits:
Object
  • Object
show all
Defined in:
lib/swarker/serializers/service_serializer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#schemaObject (readonly)

Returns the value of attribute schema.



4
5
6
# File 'lib/swarker/serializers/service_serializer.rb', line 4

def schema
  @schema
end