Class: Google::Apis::BooksV1::Annotation::LayerSummary
- Inherits:
-
Object
- Object
- Google::Apis::BooksV1::Annotation::LayerSummary
- 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
-
#allowed_character_count ⇒ Fixnum
Maximum allowed characters on this layer, especially for the "copy" layer.
-
#limit_type ⇒ String
Type of limitation on this layer.
-
#remaining_character_count ⇒ Fixnum
Remaining allowed characters on this layer, especially for the "copy" layer.
Instance Method Summary collapse
-
#initialize(**args) ⇒ LayerSummary
constructor
A new instance of LayerSummary.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ LayerSummary
Returns a new instance of LayerSummary.
248 249 250 |
# File 'lib/google/apis/books_v1/classes.rb', line 248 def initialize(**args) update!(**args) end |
Instance Attribute Details
#allowed_character_count ⇒ Fixnum
Maximum allowed characters on this layer, especially for the "copy" layer.
Corresponds to the JSON property allowedCharacterCount
235 236 237 |
# File 'lib/google/apis/books_v1/classes.rb', line 235 def allowed_character_count @allowed_character_count end |
#limit_type ⇒ String
Type of limitation on this layer. "limited" or "unlimited" for the "copy"
layer.
Corresponds to the JSON property limitType
241 242 243 |
# File 'lib/google/apis/books_v1/classes.rb', line 241 def limit_type @limit_type end |
#remaining_character_count ⇒ Fixnum
Remaining allowed characters on this layer, especially for the "copy" layer.
Corresponds to the JSON property remainingCharacterCount
246 247 248 |
# File 'lib/google/apis/books_v1/classes.rb', line 246 def remaining_character_count @remaining_character_count end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
253 254 255 256 257 |
# File 'lib/google/apis/books_v1/classes.rb', line 253 def update!(**args) @allowed_character_count = args[:allowed_character_count] if args.key?(:allowed_character_count) @limit_type = args[:limit_type] if args.key?(:limit_type) @remaining_character_count = args[:remaining_character_count] if args.key?(:remaining_character_count) end |