Module: Issuu

Defined in:
lib/issuu.rb,
lib/issuu/cli.rb,
lib/issuu/folder.rb,
lib/issuu/bookmark.rb,
lib/issuu/document.rb,
lib/issuu/parameter_set.rb,
lib/issuu/issuu_exception_manager.rb

Defined Under Namespace

Classes: Bookmark, Cli, Document, Folder, IssuuException, IssuuExceptionManager, ParameterSet

Constant Summary collapse

API_URL =
URI.parse('http://api.issuu.com/1_0')
API_UPLOAD_URL =
URI.parse('http://upload.issuu.com/1_0')

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.api_keyObject

Returns the value of attribute api_key.



14
15
16
# File 'lib/issuu.rb', line 14

def api_key
  @api_key
end

.secretObject

Returns the value of attribute secret.



14
15
16
# File 'lib/issuu.rb', line 14

def secret
  @secret
end

Class Method Details

.configure {|_self| ... } ⇒ Object

In your initializer: Issuu.configure do |c|

c.api_key   = ENV['ISSUU_API_KEY']
c.secret   = ENV['ISSUU_SECRET']

end

Yields:

  • (_self)

Yield Parameters:

  • _self (Issuu)

    the object that the method was called on



22
23
24
# File 'lib/issuu.rb', line 22

def configure
  yield self
end