Class: AboutPage::Fedora
- Inherits:
-
Configuration::Node
- Object
- Configuration::Node
- AboutPage::Fedora
- Defined in:
- lib/about_page/fedora.rb
Instance Attribute Summary collapse
-
#rubydora ⇒ Object
Returns the value of attribute rubydora.
Instance Method Summary collapse
-
#initialize(rubydora_instance) ⇒ Fedora
constructor
A new instance of Fedora.
- #preflight(request) ⇒ Object
- #profile ⇒ Object
- #to_h ⇒ Object
Methods inherited from Configuration::Node
#add_header, #expects, #messages, #set_headers!
Constructor Details
#initialize(rubydora_instance) ⇒ Fedora
Returns a new instance of Fedora.
13 14 15 |
# File 'lib/about_page/fedora.rb', line 13 def initialize rubydora_instance self.rubydora = rubydora_instance end |
Instance Attribute Details
#rubydora ⇒ Object
Returns the value of attribute rubydora.
11 12 13 |
# File 'lib/about_page/fedora.rb', line 11 def rubydora @rubydora end |
Instance Method Details
#preflight(request) ⇒ Object
26 27 28 29 30 |
# File 'lib/about_page/fedora.rb', line 26 def preflight request # FIXME: ew. self.rubydora.instance_variable_set('@profile', nil) super(request) end |
#profile ⇒ Object
17 18 19 |
# File 'lib/about_page/fedora.rb', line 17 def profile rubydora.profile || {} end |
#to_h ⇒ Object
21 22 23 |
# File 'lib/about_page/fedora.rb', line 21 def to_h profile end |