Class: Serrano::ContentNegotiation
- Inherits:
-
Object
- Object
- Serrano::ContentNegotiation
- Defined in:
- lib/serrano/cn.rb
Instance Attribute Summary collapse
-
#format ⇒ Object
Returns the value of attribute format.
-
#ids ⇒ Object
Returns the value of attribute ids.
-
#locale ⇒ Object
Returns the value of attribute locale.
-
#style ⇒ Object
Returns the value of attribute style.
Instance Method Summary collapse
- #cn ⇒ Object
-
#initialize(ids, format = "bibtex", style = "apa", locale = "en-US") ⇒ ContentNegotiation
constructor
A new instance of ContentNegotiation.
Constructor Details
#initialize(ids, format = "bibtex", style = "apa", locale = "en-US") ⇒ ContentNegotiation
Returns a new instance of ContentNegotiation.
17 18 19 20 21 22 |
# File 'lib/serrano/cn.rb', line 17 def initialize(ids, format = "bibtex", style = "apa", locale = "en-US") self.ids = ids self.format = format self.style = style self.locale = locale end |
Instance Attribute Details
#format ⇒ Object
Returns the value of attribute format.
13 14 15 |
# File 'lib/serrano/cn.rb', line 13 def format @format end |
#ids ⇒ Object
Returns the value of attribute ids.
12 13 14 |
# File 'lib/serrano/cn.rb', line 12 def ids @ids end |
#locale ⇒ Object
Returns the value of attribute locale.
15 16 17 |
# File 'lib/serrano/cn.rb', line 15 def locale @locale end |
#style ⇒ Object
Returns the value of attribute style.
14 15 16 |
# File 'lib/serrano/cn.rb', line 14 def style @style end |