class Aries::Presenters::ParamTypeSwift

Public Class Methods

new(param_type) click to toggle source

@param param_type [Aries::ParamType]

# File lib/aries/presenters/param_type_swift.rb, line 8
def initialize param_type
  @param_type = param_type
end

Public Instance Methods

original() click to toggle source
# File lib/aries/presenters/param_type_swift.rb, line 25
def original
  @param_type
end
param_class() click to toggle source
# File lib/aries/presenters/param_type_swift.rb, line 12
def param_class
  case original.type
  when "any"     then "AnyObject"
  when "array"   then "[AnyObject]"
  when "boolean" then "Bool"
  when "integer" then "Int"
  when "number"  then "Double"
  when "object"  then "[String:AnyObject]"
  when "string"  then "String"
  else "AnyObject"
  end
end