Sha256: baa8eb5f5a98b6c0b46388d2acc6cddb63f7230d68181dc96e81bf78140a44bc
Contents?: true
Size: 381 Bytes
Versions: 8
Compression:
Stored size: 381 Bytes
Contents
module Ravelry # Parent class that controls initialization and fetching for API objects. class Data attr_accessor :id attr_reader :data def initialize(id=nil) @id = id end def data=(d) @data = d build self end private # Determines if a GET request needs to be made. def get? @id && !@data end end end
Version data entries
8 entries across 8 versions & 1 rubygems