class Ari::Generators::Attribute
Public Class Methods
new(specification)
click to toggle source
# File lib/ari/generators/attribute.rb, line 5 def initialize(specification) @specification = specification end
Public Instance Methods
description()
click to toggle source
# File lib/ari/generators/attribute.rb, line 13 def description @specification['description'] end
location()
click to toggle source
# File lib/ari/generators/attribute.rb, line 17 def location @specification['paramType'] end
multiple?()
click to toggle source
# File lib/ari/generators/attribute.rb, line 25 def multiple? @specification['allowMultiple'] end
name()
click to toggle source
# File lib/ari/generators/attribute.rb, line 9 def name @specification['name'] end
required?()
click to toggle source
# File lib/ari/generators/attribute.rb, line 21 def required? @specification['required'] end
type()
click to toggle source
# File lib/ari/generators/attribute.rb, line 29 def type @specification['dataType'] end