Class: RoadForest::Augment::Affordance::Create

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



143
144
145
# File 'lib/roadforest/augment/affordance.rb', line 143

def affordance_type
  Af.Create
end

#get_payload(resource) ⇒ Object



135
136
137
# File 'lib/roadforest/augment/affordance.rb', line 135

def get_payload(resource)
  resource.interface.create_payload
end

#http_methodObject



139
140
141
# File 'lib/roadforest/augment/affordance.rb', line 139

def http_method
  "POST"
end