Module: Finix::HypermediaRegistry::ClassMethods
- Defined in:
- lib/finix/resources/hypermedia.rb
Instance Attribute Summary collapse
-
#hypermedia_types ⇒ Object
readonly
Returns the value of attribute hypermedia_types.
Instance Method Summary collapse
Instance Attribute Details
#hypermedia_types ⇒ Object (readonly)
Returns the value of attribute hypermedia_types.
21 22 23 |
# File 'lib/finix/resources/hypermedia.rb', line 21 def hypermedia_types @hypermedia_types end |
Instance Method Details
#define_hypermedia_types(types) ⇒ Object
11 12 13 14 15 16 17 18 19 |
# File 'lib/finix/resources/hypermedia.rb', line 11 def define_hypermedia_types(types) @hypermedia_types = types.map! do |t| t.to_s end.sort! @hypermedia_types.each do |type| Finix.hypermedia_registry[type] = self end end |