Sha256: fd81d7c05275d3e47bcaed400e1f34b1fbb9ca6816968bab6d57d701117797fa
Contents?: true
Size: 376 Bytes
Versions: 3
Compression:
Stored size: 376 Bytes
Contents
module Kloudless # Public: Base class for different API resources. e.g. Account, Team, Files. class Model def self.http Kloudless.http end def http self.class.http end def initialize(attributes = {}) @attributes = attributes end def method_missing(name, *args, &blk) @attributes[name.to_s] || super end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
kloudless-0.2.1 | lib/kloudless/model.rb |
kloudless-0.2.0 | lib/kloudless/model.rb |
kloudless-0.1.0 | lib/kloudless/model.rb |