Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/tripit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ def list
# Gets an object by ID, or in the case of trips, with an optional filter
def get
@get ||= Verb.new do |verb|
verb.entity :air, :lodging, :car, :rail, :transport, \
verb.entity :air, :lodging, :car, :parking, :rail, :transport, \
:cruise, :restaurant, :activity, :note, :map, :directions, \
:points_program \
do |entity, id|
Expand All @@ -341,7 +341,7 @@ def get
# Deletes an object by ID
def delete
@delete ||= Verb.new do |verb|
verb.entity :trip, :air, :lodging, :car, :profile, :rail, \
verb.entity :trip, :air, :lodging, :car, :parking, :profile, :rail, \
:transport, :cruise, :restaurant, :activity, :note, :map, \
:directions \
do |entity, id|
Expand All @@ -361,7 +361,7 @@ def create(obj)
# Equivalent to a delete and a create, but they happen atomically.
def replace
@replace ||= Verb.new do |verb|
verb.entity :trip, :air, :lodging, :car, :profile, :rail, \
verb.entity :trip, :air, :lodging, :car, :parking, :profile, :rail, \
:transport, :cruise, :restaurant, :activity, :note, :map, \
:directions \
do |entity, id, obj|
Expand Down