Class: EPIC::Profile

Inherits:
Resource show all
Defined in:
src/epic_profile.rb

Direct Known Subclasses

UUID

Defined Under Namespace

Classes: UUID

Constant Summary

Constant Summary

Constants inherited from Resource

Resource::GLOBAL_LOCK_HASH, Resource::GLOBAL_LOCK_MUTEX

Instance Attribute Summary (collapse)

Attributes included from Rackful::Resource

#get_etag, #get_last_modified, #path

Class Method Summary (collapse)

Instance Method Summary (collapse)

Methods inherited from Resource

#initialize, #lock, lock, #unlock, #xhtml

Methods included from Rackful::Resource

#default_headers, #destroy, #do_METHOD, #empty?, #http_DELETE, #http_GET, #http_HEAD, #http_OPTIONS, #http_PUT, #http_method, #http_methods, included, #requested?, #serializer, #title, #to_struct

Constructor Details

This class inherits a constructor from EPIC::Resource

Instance Attribute Details

- (String) description (readonly)

Returns:



46
47
48
# File 'src/epic_profile.rb', line 46

def description
  @description
end

Class Method Details

+ (Hash{ String(name) => Profile }) [](name)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:



35
36
37
# File 'src/epic_profile.rb', line 35

def Profile.[] name
  profiles[name.to_s.downcase]
end

+ (void) inherited(klass)



40
41
42
# File 'src/epic_profile.rb', line 40

def Profile.inherited klass
  profiles[klass.name.split('::').last.downcase] = klass
end

+ (Hash{ String(prefix) => Hash{ String(name) => Profile } }) profiles

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:



28
29
30
# File 'src/epic_profile.rb', line 28

def Profile.profiles
  @@profiles ||= {}
end

Instance Method Details

- (void) to_rackful



49
50
51
# File 'src/epic_profile.rb', line 49

def to_rackful
  description
end

- (void) validate(request)

Parameters:



# File 'src/epic_profile.rb', line 54