spec/templates/world.rb
### WARNING: This file is auto-generated by the asana-api-meta repo. Do not
### edit it manually.
module Asana
module Resources
# A _world_ is a place where unicorns live.
class World < Resource
attr_reader :gid
class << self
# Returns the plural name of the resource.
def plural_name
'worlds'
end
# Returns the complete world record for a single world.
#
# id - [Id] The world to get.
# options - [Hash] the request I/O options.
def find_by_id(client, id, options: {})
self.new(parse(client.get("/worlds/#{id}", options: options)).first, client: client)
end
end
end
end
end