Sha256: dc7ddfbc9dcda8d7c93fa35d2fb92a7c8c88ba9fc44f2a2507efd6ee1f2bbaae
Contents?: true
Size: 751 Bytes
Versions: 10
Compression:
Stored size: 751 Bytes
Contents
module Seahorse module Model class Operation < Node def initialize(*) super self.metadata = {} self.input = InputShape.new self.output = OutputShape.new end property :name, String property :http_method, String property :http_path, String property :metadata, Hash property :documentation, String property :input, InputShape property :output, OutputShape property :errors, [Shape] def to_hash hash = super hash.delete('metadata') if hash['metadata'].empty? hash.delete('input') if hash['input']['members'].empty? hash.delete('output') if hash['output']['members'].empty? hash end end end end
Version data entries
10 entries across 10 versions & 1 rubygems