16 lines
282 B
Ruby
16 lines
282 B
Ruby
module Travis::API::V3
|
|
module Renderer::Settings
|
|
extend self
|
|
|
|
AVAILABLE_ATTRIBUTES = [:settings]
|
|
|
|
def available_attributes
|
|
AVAILABLE_ATTRIBUTES
|
|
end
|
|
|
|
def render(settings, **)
|
|
{ '@type' => 'settings'.freeze }.merge!(settings.to_h)
|
|
end
|
|
end
|
|
end
|