Class: RoadForest::Augment::Affordance::Update

Inherits:
PayloadAugmentation show all
Defined in:
lib/roadforest/augment/affordance.rb

Instance Method Summary collapse

Methods inherited from PayloadAugmentation

#applicable?, #apply

Methods included from GrantTokens

#each_grant_token

Methods inherited from RoadForest::Augment::Augmentation

#canonical_uri, #initialize, object_follows, object_precedes, register_for_objects, register_for_subjects, #router, subject_follows, subject_precedes

Constructor Details

This class inherits a constructor from RoadForest::Augment::Augmentation

Instance Method Details

#affordance_typeObject



127
128
129
# File 'lib/roadforest/augment/affordance.rb', line 127

def affordance_type
  Af.Update
end

#get_payload(resource) ⇒ Object



119
120
121
# File 'lib/roadforest/augment/affordance.rb', line 119

def get_payload(resource)
  resource.interface.update_payload
end

#http_methodObject



123
124
125
# File 'lib/roadforest/augment/affordance.rb', line 123

def http_method
  "PUT"
end