Class: Purview::Structs::TableMetadata

Inherits:
Base
  • Object
show all
Defined in:
lib/purview/structs/table_metadata.rb

Instance Method Summary collapse

Methods inherited from Base

#[], #[]=, #method_missing

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Purview::Structs::Base

Instance Method Details

#diabled?Boolean

Returns:

  • (Boolean)


4
5
6
# File 'lib/purview/structs/table_metadata.rb', line 4

def diabled?
  !enabled?
end

#enabled?Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/purview/structs/table_metadata.rb', line 8

def enabled?
  !!enabled_at
end

#initialized?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/purview/structs/table_metadata.rb', line 12

def initialized?
  !!max_timestamp_pulled
end

#locked?Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/purview/structs/table_metadata.rb', line 16

def locked?
  !!locked_at
end

#unlocked?Boolean

Returns:

  • (Boolean)


20
21
22
# File 'lib/purview/structs/table_metadata.rb', line 20

def unlocked?
  !locked?
end