Sha256: 6389f18d9b9470df87618032bec10304c77cac892fa17a150754f3eab20cc6d9
Contents?: true
Size: 622 Bytes
Versions: 2
Compression:
Stored size: 622 Bytes
Contents
require_relative 'request' require_relative 'response' module Opushon class Option include Virtus.model(strict: true) attribute :title, String, default: '', required: true attribute :description, String, default: '', required: true attribute :request, Request, default: Request.new, required: true attribute :response, Response, default: Response.new, required: true def to_h { title: @title, description: @description, request: @request.to_h, response: @response.to_h } end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
opushon-0.2.1 | lib/opushon/option.rb |
opushon-0.2 | lib/opushon/option.rb |