Module: TheCity

Defined in:
lib/the_city/time.rb,
lib/the_city/base.rb,
lib/the_city/need.rb,
lib/the_city/user.rb,
lib/the_city/error.rb,
lib/the_city/event.rb,
lib/the_city/group.rb,
lib/the_city/topic.rb,
lib/the_city/client.rb,
lib/the_city/prayer.rb,
lib/the_city/account.rb,
lib/the_city/content.rb,
lib/the_city/version.rb,
lib/the_city/api/needs.rb,
lib/the_city/api/users.rb,
lib/the_city/api/utils.rb,
lib/the_city/arguments.rb,
lib/the_city/api/client.rb,
lib/the_city/api/events.rb,
lib/the_city/api/groups.rb,
lib/the_city/api/topics.rb,
lib/the_city/collection.rb,
lib/the_city/rate_limit.rb,
lib/the_city/api/prayers.rb,
lib/the_city/permissions.rb,
lib/the_city/terminology.rb,
lib/the_city/api/accounts.rb,
lib/the_city/error/forbidden.rb,
lib/the_city/error/not_found.rb,
lib/the_city/error/bad_gateway.rb,
lib/the_city/error/bad_request.rb,
lib/the_city/error/unauthorized.rb,
lib/the_city/error/argument_arror.rb,
lib/the_city/error/not_acceptable.rb,
lib/the_city/error/gateway_timeout.rb,
lib/the_city/api/response/parse_json.rb,
lib/the_city/error/too_many_requests.rb,
lib/the_city/api/response/raise_error.rb,
lib/the_city/error/configuration_error.rb,
lib/the_city/error/service_unavailable.rb,
lib/the_city/error/unprocessable_entity.rb,
lib/the_city/error/internal_server_error.rb,
lib/the_city/api/request/multipart_with_file.rb

Overview

require ‘tzinfo-data’

Defined Under Namespace

Modules: API, Time Classes: Account, Arguments, Base, Client, Collection, Content, Error, Event, Group, Need, Permissions, Prayer, RateLimit, Terminology, Topic, User, Version

Instance Method Summary collapse

Instance Method Details

#valid?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/the_city/topic.rb', line 10

def valid?
  return (title and body and group_id)
end