lib/twilio-ruby/rest/pricing/v1/voice/country.rb in twilio-ruby-5.0.0.rc26 vs lib/twilio-ruby/rest/pricing/v1/voice/country.rb in twilio-ruby-5.0.0
- old
+ new
@@ -63,16 +63,10 @@
##
# When passed a block, yields CountryInstance 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],
@@ -227,11 +221,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 [CountryContext] CountryContext for this CountryInstance
def context
unless @instance_context
@instance_context = CountryContext.new(
@version,
@@ -239,29 +232,41 @@
)
end
@instance_context
end
+ ##
+ # @return [String] The country
def country
@properties['country']
end
+ ##
+ # @return [String] The iso_country
def iso_country
@properties['iso_country']
end
+ ##
+ # @return [String] The outbound_prefix_prices
def outbound_prefix_prices
@properties['outbound_prefix_prices']
end
+ ##
+ # @return [String] The inbound_call_prices
def inbound_call_prices
@properties['inbound_call_prices']
end
+ ##
+ # @return [String] The price_unit
def price_unit
@properties['price_unit']
end
+ ##
+ # @return [String] The url
def url
@properties['url']
end
##
\ No newline at end of file