Sha256: fea640ae87bc8673ce302b633abf60c8de4513ff8a7094d17006e267c79cb554
Contents?: true
Size: 640 Bytes
Versions: 26
Compression:
Stored size: 640 Bytes
Contents
module TheCity class Tag < ApiObject tc_attr_accessor :id, :name, :created_at # Loads the tag by the specified ID. # # @param tag_id The ID of the tag to load. # # Returns a new {Tag} object. def self.load_by_id(tag_id) reader = TagReader.new(tag_id) self.new(reader.load_feed) rescue nil end # Constructor. # # @param json_data (optional) JSON data of the Tag. def initialize(json_data = nil) @writer_object = TagWriter initialize_from_json_object(json_data) unless json_data.nil? end end end
Version data entries
26 entries across 26 versions & 1 rubygems