Class: Seahorse::ApiTranslator::OutputShape

Inherits:
Shape
  • Object
show all
Defined in:
lib/seahorse/api_translator/shape.rb

Instance Method Summary collapse

Methods inherited from Shape

#initialize, #rules, #xmlname

Methods included from Inflector

#inflect

Constructor Details

This class inherits a constructor from Seahorse::ApiTranslator::Shape

Instance Method Details

#set_max_length(*args) ⇒ Object



221
# File 'lib/seahorse/api_translator/shape.rb', line 221

def set_max_length *args; end

#set_member_order(*args) ⇒ Object



219
# File 'lib/seahorse/api_translator/shape.rb', line 219

def set_member_order *args; end

#set_min_length(*args) ⇒ Object



220
# File 'lib/seahorse/api_translator/shape.rb', line 220

def set_min_length *args; end

#set_pattern(*args) ⇒ Object



222
# File 'lib/seahorse/api_translator/shape.rb', line 222

def set_pattern *args; end

#set_required(*args) ⇒ Object

these traits are ignored for output shapes



218
# File 'lib/seahorse/api_translator/shape.rb', line 218

def set_required *args; end

#swap_names?(shape) ⇒ Boolean

Returns:

  • (Boolean)


224
225
226
227
228
229
230
# File 'lib/seahorse/api_translator/shape.rb', line 224

def swap_names? shape
  if @options[:documentation]
    false
  else
    !!(%w(query rest-xml).include?(@options[:type]) and shape.xmlname)
  end
end