Class: Google::Apis::BooksV1::Series::Series::SeriesSubscriptionReleaseInfo::CurrentReleaseInfo

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/books_v1/classes.rb,
lib/google/apis/books_v1/representations.rb,
lib/google/apis/books_v1/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CurrentReleaseInfo

Returns a new instance of CurrentReleaseInfo.



2716
2717
2718
# File 'lib/google/apis/books_v1/classes.rb', line 2716

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#amount_in_microsFloat

Corresponds to the JSON property amountInMicros

Returns:

  • (Float)


2699
2700
2701
# File 'lib/google/apis/books_v1/classes.rb', line 2699

def amount_in_micros
  @amount_in_micros
end

#currency_codeString

Corresponds to the JSON property currencyCode

Returns:

  • (String)


2704
2705
2706
# File 'lib/google/apis/books_v1/classes.rb', line 2704

def currency_code
  @currency_code
end

#release_numberString

Corresponds to the JSON property releaseNumber

Returns:

  • (String)


2709
2710
2711
# File 'lib/google/apis/books_v1/classes.rb', line 2709

def release_number
  @release_number
end

#release_timeString

Corresponds to the JSON property releaseTime

Returns:

  • (String)


2714
2715
2716
# File 'lib/google/apis/books_v1/classes.rb', line 2714

def release_time
  @release_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2721
2722
2723
2724
2725
2726
# File 'lib/google/apis/books_v1/classes.rb', line 2721

def update!(**args)
  @amount_in_micros = args[:amount_in_micros] if args.key?(:amount_in_micros)
  @currency_code = args[:currency_code] if args.key?(:currency_code)
  @release_number = args[:release_number] if args.key?(:release_number)
  @release_time = args[:release_time] if args.key?(:release_time)
end