Class: MicrosoftGraph::Me::Calendar::CalendarView::Item::EventItemRequestBuilder::EventItemRequestBuilderGetQueryParameters

Inherits:
Object
  • Object
show all
Defined in:
lib/me/calendar/calendar_view/item/event_item_request_builder.rb

Overview

The calendar view for the calendar. Navigation property. Read-only.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#end_date_timeObject

The end date and time of the time range, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00



133
134
135
# File 'lib/me/calendar/calendar_view/item/event_item_request_builder.rb', line 133

def end_date_time
  @end_date_time
end

#selectObject

Select properties to be returned



136
137
138
# File 'lib/me/calendar/calendar_view/item/event_item_request_builder.rb', line 136

def select
  @select
end

#start_date_timeObject

The start date and time of the time range, represented in ISO 8601 format. For example, 2019-11-08T19:00:00-08:00



139
140
141
# File 'lib/me/calendar/calendar_view/item/event_item_request_builder.rb', line 139

def start_date_time
  @start_date_time
end

Instance Method Details

#get_query_parameter(original_name) ⇒ Object

Maps the query parameters names to their encoded names for the URI template parsing.

Parameters:

  • original_name

    The original query parameter name in the class.

Returns:

  • a string

Raises:

  • (StandardError)


145
146
147
148
149
150
151
152
153
154
155
156
157
# File 'lib/me/calendar/calendar_view/item/event_item_request_builder.rb', line 145

def get_query_parameter(original_name)
    raise StandardError, 'original_name cannot be null' if original_name.nil?
    case original_name
        when "end_date_time"
            return "endDateTime"
        when "select"
            return "%24select"
        when "start_date_time"
            return "startDateTime"
        else
            return original_name
    end
end