Class: Seahorse::ApiTranslator::InputShape
- Inherits:
-
Shape
- Object
- Shape
- Seahorse::ApiTranslator::InputShape
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
Instance Method Details
#set_max_length(max) ⇒ Object
200
201
202
|
# File 'lib/seahorse/api_translator/shape.rb', line 200
def set_max_length max
@rules['max_length'] = max if @options[:documentation]
end
|
#set_member_order(order) ⇒ Object
192
193
194
|
# File 'lib/seahorse/api_translator/shape.rb', line 192
def set_member_order order
@rules['order'] = order
end
|
#set_min_length(min) ⇒ Object
196
197
198
|
# File 'lib/seahorse/api_translator/shape.rb', line 196
def set_min_length min
@rules['min_length'] = min if @options[:documentation]
end
|
#set_pattern(pattern) ⇒ Object
204
205
206
|
# File 'lib/seahorse/api_translator/shape.rb', line 204
def set_pattern pattern
@rules['pattern'] = pattern if @options[:documentation]
end
|
#set_required(*args) ⇒ Object
188
189
190
|
# File 'lib/seahorse/api_translator/shape.rb', line 188
def set_required *args
@rules['required'] = true;
end
|
#swap_names?(shape) ⇒ Boolean
208
209
210
|
# File 'lib/seahorse/api_translator/shape.rb', line 208
def swap_names? shape
false
end
|