Class: Fulcrum::Changeset

Inherits:
Resource show all
Includes:
Actions::Create, Actions::Find, Actions::List, Actions::Update
Defined in:
lib/fulcrum/changeset.rb

Constant Summary

Constants included from Actions::List

Actions::List::DEFAULT_PER_PAGE

Instance Attribute Summary

Attributes inherited from Resource

#client

Instance Method Summary collapse

Methods included from Actions::Update

#update

Methods included from Actions::Create

#create, #create_action

Methods included from Actions::Find

#find

Methods included from Actions::List

#all, #default_list_params

Methods inherited from Resource

#attributes_for_object, #call, #collection, #initialize, #member, #member_action, #resource_name, #resources_name

Constructor Details

This class inherits a constructor from Fulcrum::Resource

Instance Method Details

#close(id, object = {}) ⇒ Object



8
9
10
# File 'lib/fulcrum/changeset.rb', line 8

def close(id, object={})
  call(:put, member_action(id, 'close'), attributes_for_object(object))[resource_name]
end