lib/comicvine/mongo.rb in comicvine-mongo-0.1.3 vs lib/comicvine/mongo.rb in comicvine-mongo-0.1.4
- old
+ new
@@ -132,10 +132,11 @@
# Extends {ComicVine::Resource::Issue} to add mongoid functions
# @since 0.1.2
class Issue < ComicVine::Resource
include Mongoid::Document
include ComicVine::Mongo
+ include Mongoid::Attributes::Dynamic
field :aliases, type: String
field :api_detail_url, type: String
field :cover_date, type: Date
field :date_added, type: DateTime
@@ -198,10 +199,11 @@
# Extends {ComicVine::Resource::Volume} to add mongoid functions
# @since 0.1.2
class Volume < ComicVine::Resource
include Mongoid::Document
include ComicVine::Mongo
+ include Mongoid::Attributes::Dynamic
field :aliases, type: String
field :api_detail_url, type: String
field :count_of_issues, type: Integer
field :date_added, type: DateTime
@@ -234,10 +236,11 @@
# Extends {ComicVine::Resource::Character} to add mongoid functions
# # @since 0.1.2
class Character < ComicVine::Resource
include Mongoid::Document
include ComicVine::Mongo
+ include Mongoid::Attributes::Dynamic
field :aliases, type: String
field :api_detail_url, type: String
field :date_added, type: DateTime
field :date_last_updated, type: DateTime
@@ -282,10 +285,11 @@
# Extends {ComicVine::Resource::Concept} to add mongoid functions
# @since 0.1.2
class Concept < ComicVine::Resource
include Mongoid::Document
include ComicVine::Mongo
+ include Mongoid::Attributes::Dynamic
field :aliases, type: String
field :api_detail_url, type: String
field :date_added, type: DateTime
field :date_last_updated, type: DateTime
@@ -325,10 +329,11 @@
# Extends {ComicVine::Resource::Episode} to add mongoid functions
# @since 0.1.2
class Episode < ComicVine::Resource
include Mongoid::Document
include ComicVine::Mongo
+ include Mongoid::Attributes::Dynamic
field :aliases, type: String
field :api_detail_url, type: String
field :date_added, type: DateTime
field :date_last_updated, type: DateTime
@@ -386,10 +391,11 @@
# Extends {ComicVine::Resource::Location} to add mongoid functions
# @since 0.1.2
class Location < ComicVine::Resource
include Mongoid::Document
include ComicVine::Mongo
+ include Mongoid::Attributes::Dynamic
field :aliases, type: String
field :api_detail_url, type: String
field :count_of_issue_appearances, type: Integer
field :date_added, type: DateTime
@@ -414,10 +420,11 @@
# Extends {ComicVine::Resource::Movie} to add mongoid functions
# @since 0.1.2
class Movie < ComicVine::Resource
include Mongoid::Document
include ComicVine::Mongo
+ include Mongoid::Attributes::Dynamic
field :api_detail_url, type: String
field :box_office_revenue, type: Integer
field :budget, type: Integer
field :date_added, type: DateTime
@@ -469,10 +476,11 @@
# Extends {ComicVine::Resource::Object} to add mongoid functions
# @since 0.1.2
class Object < ComicVine::Resource
include Mongoid::Document
include ComicVine::Mongo
+ include Mongoid::Attributes::Dynamic
field :aliases, type: String
field :api_detail_url, type: String
field :count_of_issue_appearances, type: Integer
field :date_added, type: DateTime
@@ -496,10 +504,11 @@
# Extends {ComicVine::Resource::Origin} to add mongoid functions
# @since 0.1.2
class Origin < ComicVine::Resource
include Mongoid::Document
include ComicVine::Mongo
+ include Mongoid::Attributes::Dynamic
field :api_detail_url, type: String
field :character_set, type: String
field :id, type: Integer
field :name, type: String
@@ -513,10 +522,11 @@
# Extends {ComicVine::Resource::Person} to add mongoid functions
# @since 0.1.2
class Person < ComicVine::Resource
include Mongoid::Document
include ComicVine::Mongo
+ include Mongoid::Attributes::Dynamic
field :aliases, type: String
field :api_detail_url, type: String
field :birth, type: Date
field :death, type: Date
@@ -579,10 +589,11 @@
# Extends {ComicVine::Resource::Power} to add mongoid functions
# @since 0.1.2
class Power < ComicVine::Resource
include Mongoid::Document
include ComicVine::Mongo
+ include Mongoid::Attributes::Dynamic
field :aliases, type: String
field :api_detail_url, type: String
field :name, type: String
field :site_detail_url, type: String
@@ -597,10 +608,11 @@
# Extends {ComicVine::Resource::Promo} to add mongoid functions
# @since 0.1.2
class Promo < ComicVine::Resource
include Mongoid::Document
include ComicVine::Mongo
+ include Mongoid::Attributes::Dynamic
field :api_detail_url, type: String
field :date_added, type: DateTime
field :deck, type: String
field :id, type: Integer
@@ -615,10 +627,11 @@
# Extends {ComicVine::Resource::Publisher} to add mongoid functions
# @since 0.1.2
class Publisher < ComicVine::Resource
include Mongoid::Document
include ComicVine::Mongo
+ include Mongoid::Attributes::Dynamic
field :aliases, type: String
field :api_detail_url, type: String
field :date_added, type: DateTime
field :date_last_updated, type: DateTime
@@ -643,10 +656,11 @@
# Extends {ComicVine::Resource::Series} to add mongoid functions
# @since 0.1.2
class Series < ComicVine::Resource
include Mongoid::Document
include ComicVine::Mongo
+ include Mongoid::Attributes::Dynamic
field :aliases, type: String
field :api_detail_url, type: String
field :date_added, type: DateTime
field :date_last_updated, type: DateTime
@@ -674,10 +688,11 @@
# Extends {ComicVine::Resource::StoryArc} to add mongoid functions
# @since 0.1.2
class StoryArc < ComicVine::Resource
include Mongoid::Document
include ComicVine::Mongo
+ include Mongoid::Attributes::Dynamic
field :aliases, type: String
field :api_detail_url, type: String
field :date_added, type: DateTime
field :date_last_updated, type: DateTime
@@ -716,9 +731,10 @@
# Extends {ComicVine::Resource::Team} to add mongoid functions
# @since 0.1.2
class Team < ComicVine::Resource
include Mongoid::Document
include ComicVine::Mongo
+ include Mongoid::Attributes::Dynamic
field :aliases, type: String
field :api_detail_url, type: String
field :date_added, type: DateTime
field :date_last_updated, type: DateTime