Module: X::Resources

Defined in:
x-resources/lib/x/resources/version.rb,
x-resources/lib/x/resources/api.rb,
x-resources/lib/x/resources/list.rb,
x-resources/lib/x/resources/memo.rb,
x-resources/lib/x/resources/page.rb,
x-resources/lib/x/resources/post.rb,
x-resources/lib/x/resources/user.rb,
x-resources/lib/x/resources/batch.rb,
x-resources/lib/x/resources/media.rb,
x-resources/lib/x/resources/pages.rb,
x-resources/lib/x/resources/shape.rb,
x-resources/lib/x/resources/space.rb,
x-resources/lib/x/resources/trend.rb,
x-resources/lib/x/resources/utils.rb,
x-resources/lib/x/resources/cursor.rb,
x-resources/lib/x/resources/errors.rb,
x-resources/lib/x/resources/actions.rb,
x-resources/lib/x/resources/finders.rb,
x-resources/lib/x/resources/lookups.rb,
x-resources/lib/x/resources/identity.rb,
x-resources/lib/x/resources/includes.rb,
x-resources/lib/x/resources/parallel.rb,
x-resources/lib/x/resources/resource.rb,
x-resources/lib/x/resources/community.rb,
x-resources/lib/x/resources/media_ids.rb,
x-resources/lib/x/resources/attributes.rb,
x-resources/lib/x/resources/page_limit.rb,
x-resources/lib/x/resources/post_usage.rb,
x-resources/lib/x/resources/references.rb,
x-resources/lib/x/resources/marshalling.rb,
x-resources/lib/x/resources/post_counts.rb,
x-resources/lib/x/resources/post_search.rb,
x-resources/lib/x/resources/post_writes.rb,
x-resources/lib/x/resources/user_finders.rb,
x-resources/lib/x/resources/actions/lists.rb,
x-resources/lib/x/resources/actions/posts.rb,
x-resources/lib/x/resources/batch_finders.rb,
x-resources/lib/x/resources/lookups/lists.rb,
x-resources/lib/x/resources/lookups/media.rb,
x-resources/lib/x/resources/lookups/posts.rb,
x-resources/lib/x/resources/lookups/users.rb,
x-resources/lib/x/resources/matching_rule.rb,
x-resources/lib/x/resources/relationships.rb,
x-resources/lib/x/resources/serialization.rb,
x-resources/lib/x/resources/abstract_class.rb,
x-resources/lib/x/resources/direct_message.rb,
x-resources/lib/x/resources/lookups/spaces.rb,
x-resources/lib/x/resources/lookups/trends.rb,
x-resources/lib/x/resources/value_equality.rb,
x-resources/lib/x/resources/published_count.rb,
x-resources/lib/x/resources/relation_writes.rb,
x-resources/lib/x/resources/post_collections.rb,
x-resources/lib/x/resources/user_collections.rb,
x-resources/lib/x/resources/value_marshalling.rb,
x-resources/lib/x/resources/actions/engagement.rb,
x-resources/lib/x/resources/personalized_trend.rb,
x-resources/lib/x/resources/lookups/communities.rb,
x-resources/lib/x/resources/actions/relationships.rb,
x-resources/lib/x/resources/actions/direct_messages.rb,
x-resources/lib/x/resources/lookups/direct_messages.rb,
x-resources/lib/x/resources/direct_message_conversations.rb

Overview

The object layer of the X gem

Defined Under Namespace

Modules: API, BatchFinders, DirectMessageConversations, Finders, Identity, Marshalling, PostCollections, PostCounts, PostSearch, PostWrites, References, Relationships, Serialization, UserCollections, UserFinders, ValueEquality, ValueMarshalling Classes: Error

Constant Summary collapse

VERSION =

The current version of the x-resources gem

"1.0.0"

Class Method Summary collapse

Class Method Details

.gem_version ⇒ Gem::Version

The version as a Gem::Version, which compares one release with another

VERSION is a String, as a version constant is throughout Ruby, so that what reads it can split it, match it, or send it wherever a String belongs. This builds the Gem::Version that compares it with another version, which a String compares by character rather than by segment.

Examples:

Take a path that a later release opened

X::Resources.gem_version >= Gem::Version.new("1.1")

Returns:

  • (Gem::Version) —

    the version



23
# File 'x-resources/lib/x/resources/version.rb', line 23

def self.gem_version = Gem::Version.new(VERSION)