Class: SData::RouteMapper

Inherits:
Struct
  • Object
show all
Defined in:
lib/s_data/route_mapper.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#optionsObject

Returns the value of attribute options

Returns:

  • (Object)

    the current value of options



2
3
4
# File 'lib/s_data/route_mapper.rb', line 2

def options
  @options
end

#resource_nameObject

Returns the value of attribute resource_name

Returns:

  • (Object)

    the current value of resource_name



2
3
4
# File 'lib/s_data/route_mapper.rb', line 2

def resource_name
  @resource_name
end

#routerObject

Returns the value of attribute router

Returns:

  • (Object)

    the current value of router



2
3
4
# File 'lib/s_data/route_mapper.rb', line 2

def router
  @router
end

Class Method Details

.urlize(string) ⇒ Object



24
25
26
# File 'lib/s_data/route_mapper.rb', line 24

def self.urlize(string)
  string.gsub("'", "(%27|')").gsub("\s", "(%20|\s)")
end

Instance Method Details

#map_sdata_routes!Object



3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/s_data/route_mapper.rb', line 3

def map_sdata_routes!
  #RADAR: the order of the below statements makes a difference

  map_sdata_show_instance
  map_sdata_show_instance_with_condition_and_predicate
  map_sdata_show_instance_with_condition
  map_sdata_show_instance_with_predicate

  map_sdata_create_link
  map_sdata_create_instance
  map_sdata_update_instance
  
  map_sdata_sync_source
  map_sdata_sync_source_status
  map_sdata_sync_source_delete
  map_sdata_receive_sync_results

  map_sdata_collection_with_condition
  map_sdata_collection
end