lib/twilio-ruby/rest/trunking/v1/trunk/origination_url.rb in twilio-ruby-5.0.0.rc26 vs lib/twilio-ruby/rest/trunking/v1/trunk/origination_url.rb in twilio-ruby-5.0.0
- old
+ new
@@ -97,16 +97,10 @@
##
# When passed a block, yields OriginationUrlInstance records from the API.
# This operation lazily loads records as efficiently as possible until the limit
# is reached.
- # @param [Integer] limit Upper limit for the number of records to return. stream()
- # guarantees to never return more than limit. Default is no limit
- # @param [Integer] page_size Number of records to fetch per request, when not set will use
- # the default value of 50 records. If no page_size is defined
- # but a limit is defined, stream() will attempt to read the
- # limit with the most efficient page size, i.e. min(limit, 1000)
def each
limits = @version.read_limits
page = self.page(
page_size: limits[:page_size],
@@ -162,11 +156,10 @@
##
# Initialize the OriginationUrlPage
# @param [Version] version Version that contains the resource
# @param [Response] response Response from the API
# @param [Hash] solution Path solution for the resource
- # @param [String] trunk_sid The trunk_sid
# @return [OriginationUrlPage] OriginationUrlPage
def initialize(version, response, solution)
super(version, response)
# Path Solution
@@ -311,11 +304,10 @@
end
##
# Generate an instance context for the instance, the context is capable of
# performing various actions. All instance actions are proxied to the context
- # @param [Version] version Version that contains the resource
# @return [OriginationUrlContext] OriginationUrlContext for this OriginationUrlInstance
def context
unless @instance_context
@instance_context = OriginationUrlContext.new(
@version,
@@ -324,49 +316,71 @@
)
end
@instance_context
end
+ ##
+ # @return [String] The account_sid
def account_sid
@properties['account_sid']
end
+ ##
+ # @return [String] The sid
def sid
@properties['sid']
end
+ ##
+ # @return [String] The trunk_sid
def trunk_sid
@properties['trunk_sid']
end
+ ##
+ # @return [String] The weight
def weight
@properties['weight']
end
+ ##
+ # @return [Boolean] The enabled
def enabled
@properties['enabled']
end
+ ##
+ # @return [String] The sip_url
def sip_url
@properties['sip_url']
end
+ ##
+ # @return [String] The friendly_name
def friendly_name
@properties['friendly_name']
end
+ ##
+ # @return [String] The priority
def priority
@properties['priority']
end
+ ##
+ # @return [Time] The date_created
def date_created
@properties['date_created']
end
+ ##
+ # @return [Time] The date_updated
def date_updated
@properties['date_updated']
end
+ ##
+ # @return [String] The url
def url
@properties['url']
end
##
\ No newline at end of file