Module: Thanos

Defined in:
lib/thanos.rb,
lib/thanos/client.rb,
lib/thanos/version.rb,
lib/thanos/api/client.rb,
lib/thanos/api/response.rb,
lib/thanos/factories/url.rb,
lib/thanos/resources/url.rb,
lib/thanos/authentication.rb,
lib/thanos/factories/date.rb,
lib/thanos/resources/date.rb,
lib/thanos/string_actions.rb,
lib/thanos/factories/comic.rb,
lib/thanos/factories/event.rb,
lib/thanos/factories/image.rb,
lib/thanos/factories/price.rb,
lib/thanos/factories/story.rb,
lib/thanos/resources/comic.rb,
lib/thanos/resources/event.rb,
lib/thanos/resources/image.rb,
lib/thanos/resources/price.rb,
lib/thanos/resources/story.rb,
lib/thanos/response_holder.rb,
lib/thanos/factories/series.rb,
lib/thanos/mappers/mappable.rb,
lib/thanos/resources/series.rb,
lib/thanos/factories/creator.rb,
lib/thanos/resources/creator.rb,
lib/thanos/api/authentication.rb,
lib/thanos/factories/character.rb,
lib/thanos/factories/thumbnail.rb,
lib/thanos/resources/character.rb,
lib/thanos/resources/thumbnail.rb,
lib/thanos/factories/item/comic.rb,
lib/thanos/factories/item/event.rb,
lib/thanos/factories/item/story.rb,
lib/thanos/finders/comic_finder.rb,
lib/thanos/finders/event_finder.rb,
lib/thanos/finders/story_finder.rb,
lib/thanos/resources/item/comic.rb,
lib/thanos/resources/item/event.rb,
lib/thanos/resources/item/story.rb,
lib/thanos/factories/item/series.rb,
lib/thanos/factories/text_object.rb,
lib/thanos/finders/series_finder.rb,
lib/thanos/resources/item/series.rb,
lib/thanos/resources/text_object.rb,
lib/thanos/factories/item/creator.rb,
lib/thanos/finders/creator_finder.rb,
lib/thanos/resources/item/creator.rb,
lib/thanos/factories/item/character.rb,
lib/thanos/finders/character_finder.rb,
lib/thanos/finders/finder_validator.rb,
lib/thanos/resources/item/character.rb,
lib/thanos/mappers/comic_data_mapper.rb,
lib/thanos/mappers/event_data_mapper.rb,
lib/thanos/mappers/story_data_mapper.rb,
lib/thanos/mappers/series_data_mapper.rb,
lib/thanos/mappers/creator_data_mapper.rb,
lib/thanos/mappers/character_data_mapper.rb

Defined Under Namespace

Modules: API, Factory, Item, Mappable Classes: Authentication, Character, CharacterDataMapper, CharacterFinder, Client, Comic, ComicDataMapper, ComicFinder, Creator, CreatorDataMapper, CreatorFinder, Date, Event, EventDataMapper, EventFinder, FinderValidator, Image, InvalidParamsError, Price, ResponseHolder, Series, SeriesDataMapper, SeriesFinder, Story, StoryDataMapper, StoryFinder, StringActions, TextObject, Thumbnail, Url

Constant Summary collapse

VERSION =
'0.6.0'

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.authenticationObject

Returns the value of attribute authentication.



7
8
9
# File 'lib/thanos.rb', line 7

def authentication
  @authentication
end

Class Method Details

.authenticate {|authentication| ... } ⇒ Object

Yields:



9
10
11
12
# File 'lib/thanos.rb', line 9

def authenticate
  self.authentication ||= Authentication.new
  yield(authentication)
end