Sha256: 23ad9e8aac2602a3219cd1d17bc2482ced3bd0540a5cd99d3cc4b33f4bcff50b

Contents?: true

Size: 485 Bytes

Versions: 15

Compression:

Stored size: 485 Bytes

Contents

module MyJohnDeere
  class Organization < SingleResource
    self.base_jd_resource = "organizations"
    self.list_resource_path = self.base_jd_resource
    self.retrieve_resource_path = self.base_jd_resource
    attributes_to_pull_from_json(:id, :name, :type, :member)

    def initialize(json_object, access_token = nil)
      super(json_object, access_token)
    end

    def fields
      return MyJohnDeere::Field.list(self.access_token, organization_id: self.id)
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
myjohndeere-0.1.3 lib/myjohndeere/organization.rb
myjohndeere-0.1.2 lib/myjohndeere/organization.rb
myjohndeere-0.1.1 lib/myjohndeere/organization.rb
myjohndeere-0.1.0 lib/myjohndeere/organization.rb
myjohndeere-0.0.11 lib/myjohndeere/organization.rb
myjohndeere-0.0.10 lib/myjohndeere/organization.rb
myjohndeere-0.0.9 lib/myjohndeere/organization.rb
myjohndeere-0.0.8 lib/myjohndeere/organization.rb
myjohndeere-0.0.7 lib/myjohndeere/organization.rb
myjohndeere-0.0.6 lib/myjohndeere/organization.rb
myjohndeere-0.0.5 lib/myjohndeere/organization.rb
myjohndeere-0.0.4 lib/myjohndeere/organization.rb
myjohndeere-0.0.3 lib/myjohndeere/organization.rb
myjohndeere-0.0.2 lib/myjohndeere/organization.rb
myjohndeere-0.0.1 lib/myjohndeere/organization.rb