Sha256: 4cd672a423415d265f384e6a4ce5e9f46917f565faad8092fb44e37392e526cc
Contents?: true
Size: 361 Bytes
Versions: 23
Compression:
Stored size: 361 Bytes
Contents
module MyJohnDeere class SingleResource < Requestable include RESTMethods include JSONAttributes attr_accessor :deleted def initialize(json_object, access_token = nil) super(json_object, access_token) setup_attributes(json_object) self.deleted = self.links.any? { |link_hash| link_hash["rel"] == "delete" } end end end
Version data entries
23 entries across 23 versions & 1 rubygems
Version | Path |
---|---|
myjohndeere-0.0.3 | lib/myjohndeere/single_resource.rb |
myjohndeere-0.0.2 | lib/myjohndeere/single_resource.rb |
myjohndeere-0.0.1 | lib/myjohndeere/single_resource.rb |