lib/zendesk2/membership.rb in zendesk2-1.8.1 vs lib/zendesk2/membership.rb in zendesk2-1.9.0
- old
+ new
@@ -24,11 +24,11 @@
def save!
data = if new_record?
requires :organization_id, :user_id
- service.create_membership("membership" => self.attributes).body["organization_membership"]
+ cistern.create_membership("membership" => self.attributes).body["organization_membership"]
else
requires :identity
raise ArgumentError, "update not implemented"
end
@@ -37,16 +37,16 @@
end
def destroy!
requires :identity
- service.destroy_membership("membership" => { "id" => self.identity })
+ cistern.destroy_membership("membership" => { "id" => self.identity })
end
def default!
requires :identity, :user_id
- self.service.mark_membership_default(
+ self.cistern.mark_membership_default(
"membership" => {
"user_id" => self.user_id,
"id" => self.identity
})