class Skeleton::Parameter

Attributes

items[R]
location[R]
name[R]
schema[R]

Public Instance Methods

array=(hash)
Alias for: items=
body?() click to toggle source
# File lib/skeleton/parameter.rb, line 39
def body?
  @location == 'body'
end
header?() click to toggle source
# File lib/skeleton/parameter.rb, line 51
def header?
  @location == 'header'
end
items=(hash) click to toggle source
# File lib/skeleton/parameter.rb, line 12
def items=(hash)
  self.type = 'array'
  @items = Skeleton::Items.new(hash)
end
Also aliased as: array=
items?() click to toggle source
# File lib/skeleton/parameter.rb, line 8
def items?
  !!@items
end
location=(value) click to toggle source
# File lib/skeleton/parameter.rb, line 35
def location=(value)
  @location = value.to_s
end
name=(value) click to toggle source
# File lib/skeleton/parameter.rb, line 31
def name=(value)
  @name = value.to_s
end
path?() click to toggle source
# File lib/skeleton/parameter.rb, line 47
def path?
  @location == 'path'
end
query?() click to toggle source
# File lib/skeleton/parameter.rb, line 43
def query?
  @location == 'query'
end
schema=(value) click to toggle source
# File lib/skeleton/parameter.rb, line 22
def schema=(value)
  case value
  when Hash
    @schema = Skeleton::Schema.new(value)
  else
    @schema = value
  end
end
schema?() click to toggle source
# File lib/skeleton/parameter.rb, line 18
def schema?
  !!@schema
end