Sha256: 7ad255547a8c8b2a6bdd327f410e9cf56358dea285ad20bc01ef02f7213fc7b9

Contents?: true

Size: 308 Bytes

Versions: 2

Compression:

Stored size: 308 Bytes

Contents

module Rapa
  class Creator
    # @return [Hash]
    attr_reader :source

    # @param source [Hash]
    def initialize(source)
      @source = source
    end

    # @return [String]
    def name
      source["__content__"]
    end

    # @return [String]
    def role
      source["Role"]
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rapa-0.6.0 lib/rapa/creator.rb
rapa-0.5.7 lib/rapa/creator.rb