class Serrano::ContentNegotiation

Attributes

format[RW]
ids[RW]
locale[RW]
style[RW]

Public Class Methods

new(ids, format = "bibtex", style = "apa", locale = "en-US") click to toggle source
# 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

Public Instance Methods

cn() click to toggle source
# File lib/serrano/cn.rb, line 24
def cn
  CNRequest.new(ids, format, style, locale).perform
end