class Collins::Profile

Attributes

options[RW]

Public Class Methods

new(options = {}) click to toggle source
# File lib/collins/profile.rb, line 11
def initialize options = {}
  @options = symbolize_hash options, :downcase => true
end

Public Instance Methods

label() click to toggle source
# File lib/collins/profile.rb, line 22
def label
  @options[:label]
end
label?() click to toggle source
# File lib/collins/profile.rb, line 25
def label?
  not label.nil?
end
pool() click to toggle source
# File lib/collins/profile.rb, line 47
def pool
  @options[:pool]
end
pool?() click to toggle source
# File lib/collins/profile.rb, line 50
def pool?
  not pool.nil?
end
prefix() click to toggle source
# File lib/collins/profile.rb, line 29
def prefix
  @options[:prefix]
end
prefix?() click to toggle source
# File lib/collins/profile.rb, line 32
def prefix?
  not prefix.nil?
end
primary_role() click to toggle source
# File lib/collins/profile.rb, line 40
def primary_role
  @options[:primary_role]
end
primary_role?() click to toggle source
# File lib/collins/profile.rb, line 43
def primary_role?
  not primary_role.nil?
end
profile() click to toggle source
# File lib/collins/profile.rb, line 15
def profile
  @options[:profile]
end
profile?() click to toggle source
# File lib/collins/profile.rb, line 18
def profile?
  not profile.nil?
end
requires_pool?() click to toggle source
# File lib/collins/profile.rb, line 64
def requires_pool?
  @options[:requires_pool]
end
requires_primary_role?() click to toggle source
# File lib/collins/profile.rb, line 61
def requires_primary_role?
  @options[:requires_primary_role]
end
requires_secondary_role?() click to toggle source
# File lib/collins/profile.rb, line 67
def requires_secondary_role?
  @options[:requires_secondary_role]
end
secondary_role() click to toggle source
# File lib/collins/profile.rb, line 54
def secondary_role
  @options[:secondary_role]
end
secondary_role?() click to toggle source
# File lib/collins/profile.rb, line 57
def secondary_role?
  not secondary_role.nil?
end
suffix_allowed?() click to toggle source
# File lib/collins/profile.rb, line 36
def suffix_allowed?
  @options[:suffix_allowed]
end