Class: TreasureData::AggregationSchema
- Defined in:
- lib/td/client/model.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#relation_key ⇒ Object
readonly
Returns the value of attribute relation_key.
-
#timezone ⇒ Object
readonly
Returns the value of attribute timezone.
Attributes inherited from Model
Instance Method Summary collapse
- #attributes ⇒ Object
-
#initialize(client, name, relation_key, logs = nil, attributes = nil, timezone = nil) ⇒ AggregationSchema
constructor
A new instance of AggregationSchema.
- #logs ⇒ Object
- #update_entries! ⇒ Object
Constructor Details
#initialize(client, name, relation_key, logs = nil, attributes = nil, timezone = nil) ⇒ AggregationSchema
Returns a new instance of AggregationSchema.
516 517 518 519 520 521 522 523 |
# File 'lib/td/client/model.rb', line 516 def initialize(client, name, relation_key, logs=nil, attributes=nil, timezone=nil) super(client) @name = name @relation_key = relation_key @logs = logs @attributes = attributes @timezone = timezone end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
525 526 527 |
# File 'lib/td/client/model.rb', line 525 def name @name end |
#relation_key ⇒ Object (readonly)
Returns the value of attribute relation_key.
525 526 527 |
# File 'lib/td/client/model.rb', line 525 def relation_key @relation_key end |
#timezone ⇒ Object (readonly)
Returns the value of attribute timezone.
525 526 527 |
# File 'lib/td/client/model.rb', line 525 def timezone @timezone end |
Instance Method Details
#attributes ⇒ Object
532 533 534 535 |
# File 'lib/td/client/model.rb', line 532 def attributes update_entries! unless @attributes @attributes end |
#logs ⇒ Object
527 528 529 530 |
# File 'lib/td/client/model.rb', line 527 def logs update_entries! unless @logs @logs end |
#update_entries! ⇒ Object
537 538 539 540 541 542 543 |
# File 'lib/td/client/model.rb', line 537 def update_entries! sc = @client.aggregation_schema(@name) @relation_key = sc.relation_key @logs = sc.logs @attributes = sc.attributes self end |