class Safrano::UrlParametersBase
Attributes
expand[R]
select[R]
Public Class Methods
new(dataset, params = {})
click to toggle source
# File lib/odata/url_parameters.rb, line 24 def initialize(dataset, params = {}) @model = if dataset.respond_to? :model dataset.model else dataset end @params = params end
Public Instance Methods
check_expand()
click to toggle source
url params validation methods. nil is the expected return for no errors an error class is returned in case of errors this way we can combine multiple validation calls with logical ||
# File lib/odata/url_parameters.rb, line 16 def check_expand @expand.parse_error? end
check_select()
click to toggle source
# File lib/odata/url_parameters.rb, line 20 def check_select @select.parse_error? end