Skip to content

Simple class definition does not work #13

Description

@opensourceame

A very basic definition of a service class that inherits from Servitium::Service does not work.

require "servitium"

class TestService < Servitium::Service
  attribute :a
end

puts TestService

expected result:

TestService

actual result:

test.rb:4:in '<class:TestService>': undefined method 'attribute' for class TestService (NoMethodError)

  attribute :a
  ^^^^^^^^^

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions