Module: EacRest::Entity::Fetching
- Defined in:
- lib/eac_rest/entity/fetching.rb
Instance Method Summary collapse
- #request(url_suffix) ⇒ EacRest::Request
- #request_json(url_suffix = '') ⇒ EacRest::Request
- #to_api_address_suffix(url_suffix = '') ⇒ String
- #to_api_address_suffix_self ⇒ String
Instance Method Details
#request(url_suffix) ⇒ EacRest::Request
8 9 10 |
# File 'lib/eac_rest/entity/fetching.rb', line 8 def request(url_suffix) request_json(url_suffix) end |
#request_json(url_suffix = '') ⇒ EacRest::Request
14 15 16 |
# File 'lib/eac_rest/entity/fetching.rb', line 14 def request_json(url_suffix = '') api.request_json(to_api_address_suffix(url_suffix)) end |
#to_api_address_suffix(url_suffix = '') ⇒ String
19 20 21 22 23 |
# File 'lib/eac_rest/entity/fetching.rb', line 19 def to_api_address_suffix(url_suffix = '') r = [to_api_address_suffix_self, url_suffix].join r = parent_entity.to_api_address_suffix(r) if parent_entity r end |
#to_api_address_suffix_self ⇒ String
26 27 28 |
# File 'lib/eac_rest/entity/fetching.rb', line 26 def to_api_address_suffix_self raise_abstract_method __method__ end |