Class: Niconico::Mylist::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/niconico/mylist/config.rb

Instance Attribute Summary collapse

Instance Attribute Details

#endpointObject


7
8
9
# File 'lib/niconico/mylist/config.rb', line 7

def endpoint
  @endpoint ||= Niconico::Mylist::ENDPOINT
end

#faraday_configure(&block) ⇒ Object


11
12
13
14
15
16
17
# File 'lib/niconico/mylist/config.rb', line 11

def faraday_configure(&block)
  if block
    @faraday_configure = block
  else
    @faraday_configure ||= proc {}
  end
end